///(output)1.ans是什麼,找到紅色output的最後三個字 /* maximum cycle length 最大 循環 長度 */ ///(output)2.所以去找斜體字cycle-lenth /* 斜體字後面說:the cycle length of 22 is 16 */ ///(output)3.找到以22為例子的敘述 /* Given the input 22,the following sequence of number will be printed 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1 發現他有規律,順便找一下規律 */ /* 規律題目有給: (3)if(n=1)就停止 (4) if(n是奇數)令n=3n+1 (5) else 令n=n/2 */ ///(output)4.發現從22數到1剛好是16,所以ans=max cycle length=16 /* input output a b a b max