标签:++ lse col c++ else turn eof color code
#include<stdio.h> int main() { long long n; int c; while(scanf("%lld",&n)!=EOF){ c=0; while(n!=1){ if(n%2==0){ n=n/2;c++; } else{ n=3*n+1;c++; } } printf("%d\n",c); } return 0; }
标签:++ lse col c++ else turn eof color code
原文地址:https://www.cnblogs.com/Estwind/p/10099994.html