主页
题目
状态
排名
OI排名
统计
题解
请登录
常用链接
AOJ考试平台
老赵的Gitee代码
编译原理模拟考试平台
Java技术手册
FCC网站
菜鸟网
在线工具箱
字节豆包GPT
代码可视化
力扣网
牛客网
洛谷
杭电OJ
CodeForce
隐藏编译器
Problem I: Array - Reversing Numbers
上一题
正确率: $51.95\%$
下一题
Time Limit
$1$ 秒/Second(s)
Memory Limit
$512$ 兆字节/Megabyte(s)
提交总数
$1151$
正确数量
$598$
"
裁判形式
标准裁判/Standard Judge
我的状态
尚未尝试
难度
分类标签
STL
×
为本题添加算法分类(请不要超过5个)
当前分类(单击移除):
STL
单击选择分类:
Description
<p> Reversing Numbers </p> <p> Write a program which reads a sequence and prints it in the reverse order. </p>
Input
<p> The input is given in the following format: </p> <p> n </p> <p> a1 a2 . . . an </p> <p> n is the size of the sequence and ai is the ith element of the sequence. </p>
Output
Print the reversed sequence in a line. Print a single space character between adjacent elements (Note that your program should not put a space character after the last element).
Sample Input
复制
5 1 2 3 4 5
Sample Output
复制
5 4 3 2 1
提示
<p> n ≤ 100 </p> <p> 0 ≤ ai < 1000 </p>
AOJ
Please Login