Testing Round 16 (Unrated)


A. A+B (Trial Problem)
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
4
1 5
314 15
-99 99
123 987
Output
6
329
0
1110
----------------------------------------------------------------------------------------------------
B. Square?
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3
2 3
3 1
3 2
1 3
3 3
1 3
Output
Yes
Yes
No
----------------------------------------------------------------------------------------------------
C. Skier
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
5
NNN
NS
WWEN
WWEE
NWNWS
Output
15
6
16
12
25
----------------------------------------------------------------------------------------------------
