~cpp
#include <iostream>
using namespace std;
int CheckCount (int low, int high){
int temp;
int count = 1;
int maxCount = 0;
temp = low;
while(temp<high){
count = 1;
while(temp !=1){
if(temp % 2 == 1)
temp = 3 * temp + 1;
else
temp = temp / 2;
count++;
}
temp = ++low;
if(count > maxCount)
maxCount = count;
}
return maxCount;
}
void main(){
cout << "2 번 더 " << endl;
int num1, num2;
cin >> num1 >> num2;
cout << "MAX cycle-length " << CheckCount(num1,num2) << "." << endl;
}
보
보
배
는데...
보
...
.. 1
1000000
면
...
는
리
들
많
.
더
더
는 노
.
른
리
노
데
르
--