摘要: import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String[] strings = {"ling" 阅读全文
posted @ 2020-02-05 18:12 FDSUN 阅读(233) 评论(0) 推荐(0)
摘要: #include <stdio.h> int main(){ int n; int cnt=0; scanf("%d",&n); while(n!=1){ if(n%2==0){ n=n/2; }else{ n=(3*n+1)/2; } cnt++; } printf("%d",cnt); retu 阅读全文
posted @ 2020-02-05 18:10 FDSUN 阅读(179) 评论(0) 推荐(0)