2018年12月27日
摘要: #include<stdio.h>int main(){ int a; int b=0; scanf("%d",&a); while(a!=1) { if(a%2==1) { a=3*a+1; }else { a=a/2; } b++; } printf("%d\n",b%3); } return 阅读全文
posted @ 2018-12-27 15:47 redOrange01 阅读(155) 评论(0) 推荐(0) 编辑