Reversing Numbers
Write a program which reads a sequence and prints it in the reverse order.
| Time Limit | $1$ 秒/Second(s) | Memory Limit | $512$ 兆字节/Megabyte(s) |
| 提交总数 | $1006$ | 正确数量 | $598$ | "
| 裁判形式 | 标准裁判/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:
n
a1 a2 . . . an
n is the size of the sequence and ai is the ith element of the sequence.
5
1 2 3 4 5
5 4 3 2 1
n ≤ 100
0 ≤ ai < 1000
| 本题记录 | 用 户(点击查看用户) | 运行号(点击购买题解) | 时 间 |
|---|---|---|---|
| 算法最快[$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 |
| 竞赛编号 | 竞赛名称 | 竞赛时间 | 访问比赛 |
|---|---|---|---|
| 1883 | 2025-2026-1学期《C语言程序设计》:一维数组I【25计算机】 | 2025-11-18 08:00:00 | 请登录 |
| 1835 | 2024-2025-1学期《C语言程序设计》:一维数组I【24计算机】 | 2024-11-13 00:00:00 | 请登录 |
| 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 | 请登录 |