VK Cup 2016 - Wild Card Round 1 (Unofficial Open Online Mirror)


A. Lazy Caterer Sequence
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
2
Output
4
Input
5
Output
16
----------------------------------------------------------------------------------------------------
B. Seasons
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
April
Output
spring
Input
November
Output
autumn
----------------------------------------------------------------------------------------------------
C. Array Sum
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
2
15
110
3
Output
130
Input
90
0
21
331
45
Output
487
----------------------------------------------------------------------------------------------------
D. Maximal Difference
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
2 10 4 8 6 12
Output
8
Input
3 3
Output
0
----------------------------------------------------------------------------------------------------
E. Divisibility Check
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
6 12 4
Output
1
Input
3 13
Output
0
Input
26 13 12
Output
0
----------------------------------------------------------------------------------------------------
F. Primes in Interval
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
10 20
Output
4
Input
23 23
Output
1
Input
271 566
Output
46
----------------------------------------------------------------------------------------------------
G. Hungarian Notation
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
count
18
Output
iCount
Input
weight
3.95
Output
fWeight
----------------------------------------------------------------------------------------------------
H. Rotate Matrix
time limit per test: 2 seconds
memory limit per test: 64 megabytes
input: standard input
output: standard output

Examples
Input
1 2 3
4 5 6
7 8 9
Output
7 4 1
8 5 2
9 6 3
Input
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
Output
13 9 5 1
14 10 6 2
15 11 7 3
16 12 8 4
----------------------------------------------------------------------------------------------------
