小鱼的数字游戏
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Description
Xiao Yu was recently asked to take part in a number game: it needs to remember a sequence of numbers (with arbitrary length, ending with ), then recite them in reverse order (do not recite the terminating ). This is really too hard for Xiao Yu's limited memory—you know, its whole head isn't that big, and part of it is delicious meat! So please help Xiao Yu by writing a program to solve this problem.
Input Format
A single line containing a sequence of integers, ending with , separated by spaces.
Output Format
Output this sequence in reverse on a single line, separated by spaces.
3 65 23 5 34 1 30 0
30 1 34 5 23 65 3
Hint
Constraints
For of the testdata, it is guaranteed that , and the number of integers does not exceed .
Translated by ChatGPT 5
京公网安备 11011102002149号