Uva's 3n+1 problem

前端 未结 8 1962
滥情空心
滥情空心 2020-12-11 22:40

I\'m solving Uva\'s 3n+1 problem and I don\'t get why the judge is rejecting my answer. The time limit hasn\'t been exceeded and the all test cases I\'ve tried have run corr

8条回答
  •  轮回少年
    2020-12-11 23:17

    Are you making sure to accept the entire input? It looks like your program terminates after reading only one line, and then processing one line. You need to be able to accept the entire sample input at once.

提交回复
热议问题