64 - NTHU CS Contest 2011 - Practice Scoreboard

Time

2011/05/28 09:45:00 2011/05/28 10:20:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
1002 String Reverse
1302 Sorting

1002 - String Reverse   

Description

Given a string S, output the reverse of S.

Input

The input consists of many lines. Each line is a string S with length <= 1000000.
The string S does not contain any spaces.

Output

Output the the reverse of S. One in each line.

Sample Input  Download

Sample Output  Download

Tags

klrscpp sss



Discuss




1302 - Sorting   

Description

Given some integers, please list them in increasing order.

Input

First line is an integer T (T <= 20) followed by T test cases. For each test case, start with an integer n (n <= 106) and follow by n integers V1, V2, ..., Vn. ( V< 231 for 1 <= i <= n )

Output

For each test case, list numbers from the smallest one to the largest one in one line. Two adjacent numbers in one line should be separated by a whitespace.

Sample Input  Download

Sample Output  Download

Tags




Discuss