Problem 2723 --Array - Reversing Numbers

2723: Array - Reversing Numbers

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $860$ 正确数量 $512$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签 STL

Reversing Numbers 

Write a program which reads a sequence and prints it in the reverse order.

The input is given in the following format: 

a1 a2 . . . an 

n is the size of the sequence and ai is the ith element of the sequence.

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).
5
1 2 3 4 5
5 4 3 2 1

n ≤ 100 

0 ≤ ai < 1000

推荐代码 查看2723 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$0 $ms] aha 822344 2022-03-17 19:07:42
内存最少[$0 $KB] 木剑温华 681329 2020-12-10 22:13:48
第一AC 刘成健 315121 2018-11-16 22:19:18
第一挑战 LSF 302889 2018-11-02 18:20:37

赛题来源/所属竞赛 会津大学《C++ Programming I》 C++程序设计(入门)

竞赛编号 竞赛名称 竞赛时间 访问比赛
1778 2023-2024-1学期《C语言程序设计》:一维数组I【23计算机】 2023-11-13 00:00:00 请登录
1715 2022-2023-1学期《C语言程序设计》:一维数组【22计算机】 2022-11-21 00:00:00 请登录
1663 2021-2022-1学期《C语言程序设计》:数组【21计算机】 2021-11-15 00:00:00 请登录
1567 2020-2021-1学期《C语言程序设计》:数组【20计算机12345】 2020-11-16 14:00:00 请登录
1392 2019-2020-1学期《C语言程序设计I》:数组II【19计算机12班】 2019-11-15 10:00:00 请登录