3n+1 썸네일형 리스트형 문제 1. 3n+1 문제(The 3n+1 Problem) // Written by rinehart // rinehart@naver.com //2007. 6. 1 /* Note : About 110,000 times tries, the program freezed. I don't know why. Maybe the windows OS can't support too much loop or function calls. */ #include #include #include #define MAX_INPUT 1000000 #define MIN_INPUT 1 int Get_Numbers(int *input_a, int *input_b); int Get_Cycle(int x); int main() { int v_input_a, v_input_b, v_input_temp; .. 더보기 이전 1 다음