Codeforces Round 836 (Div. 2)


A. SSeeeeiinngg DDoouubbllee
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
4
a
sururu
errorgorn
anutforajaroftuna
Output
aa
suurruurruus
rgnororerrerorongr
aannuuttffoorraajjaarrooffttuunnaa
----------------------------------------------------------------------------------------------------
B. XOR = Average
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3
1
4
3
Output
69
13 2 8 1
7 7 7
----------------------------------------------------------------------------------------------------
C. Almost All Multiples
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3
3 3
4 2
5 4
Output
3 2 1 
2 4 3 1 
-1
----------------------------------------------------------------------------------------------------
D. Range = √Sum
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3
2
5
4
Output
3 1
20 29 18 26 28
25 21 23 31
----------------------------------------------------------------------------------------------------
E. Tick, Tock
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
5
2 3 4
1 0 -1
-1 -1 2
2 2 10
1 2
3 5
4 5 1024
1 -1 -1 -1 -1
-1 -1 -1 1000 -1
-1 -1 -1 -1 69
420 -1 -1 999 -1
3 3 3
-1 -1 1
2 -1 1
2 -1 2
3 3 3
1 -1 2
-1 0 -1
-1 1 0
Output
4
0
73741817
0
1
----------------------------------------------------------------------------------------------------
F. Decent Division
time limit per test: 5 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
5
1
6
5
5
6
Output
0
1
1 2
0
1
5 6
1
5 6
2
6 7
4 5
1
4 5
0
1
6 7
0
----------------------------------------------------------------------------------------------------
