Uva's 3n+1 problem

前端 未结 8 2004
滥情空心
滥情空心 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:37

    Please consider that the integers i and j must appear in the output in the same order in which they appeared in the input, so for:

    10 1
    

    You should print

    10 1 20
    

提交回复
热议问题