摘要:
程序2-7 略去程序2-8 1 #define LOCAL 2 #include 3 #define INF 100000000 4 int main() 5 { 6 #ifdef LOCAL 7 freopen("data.in","r",stdin); 8 freope... 阅读全文
摘要:
任务1: 1 #include 2 int main() 3 { 4 int i, n; 5 scanf("%d",&n); 6 for(i = 1; i 2 int main() 3 { 4 int i, n; 5 scanf("%d",&n); 6 ... 阅读全文
摘要:
程序2-4 1 #include 2 #include 3 int main() 4 { 5 int n, count = 0; 6 scanf("%d",&n); 7 while(n>1) 8 { 9 if(n % 2 ==1) n = 3*n +1... 阅读全文