#abc284a. A - Sequence of Strings

A - Sequence of Strings

Score : 100100 points

问题描述

你将按照顺序获得 NN 个字符串 S1,S2,,SNS_1,S_2,\ldots,S_N

请按照 SN,SN1,,S1S_N,S_{N-1},\ldots,S_1 的顺序打印这些字符串。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

You are given NN strings S1,S2,,SNS_1,S_2,\ldots,S_N in this order.

Print SN,SN1,,S1S_N,S_{N-1},\ldots,S_1 in this order.

Constraints

  • 1N101\leq N \leq 10
  • NN is an integer.
  • SiS_i is a string of length between 11 and 1010, inclusive, consisting of lowercase English letters, uppercase English letters, and digits.

Input

The input is given from Standard Input in the following format:

NN

S1S_1

S2S_2

\vdots

SNS_N

Output

Print NN lines. The ii-th (1iN)(1\leq i \leq N) line should contain SN+1iS_{N+1-i}.

Sample Input 1

3
Takahashi
Aoki
Snuke

Sample Output 1

Snuke
Aoki
Takahashi

We have N=3N=3, S1=S_1= Takahashi, S2=S_2= Aoki, and S3=S_3= Snuke.

Thus, you should print Snuke, Aoki, and Takahashi in this order.

Sample Input 2

4
2023
Year
New
Happy

Sample Output 2

Happy
New
Year
2023

The given strings may contain digits.

update @ 2024/3/10 11:53:26