Codeforces Round 201 (Div. 2)


A. Difference Row
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
5
100 -100 50 0 -50
Output
100 -50 0 50 -100 
----------------------------------------------------------------------------------------------------
B. Fixed Points
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
5
0 1 3 4 2
Output
3
----------------------------------------------------------------------------------------------------
C. Alice and Bob
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
2
2 3
Output
Alice
Input
2
5 3
Output
Alice
Input
3
5 6 7
Output
Bob
----------------------------------------------------------------------------------------------------
D. Lucky Common Subsequence
time limit per test: 3 seconds
memory limit per test: 512 megabytes
input: standard input
output: standard output

Examples
Input
AJKEQSLOBSROFGZ
OVGURWZLWVLUXTH
OZ
Output
ORZ
Input
AA
A
A
Output
0
----------------------------------------------------------------------------------------------------
E. Number Transformation II
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3
3 4 5
30 17
Output
6
Input
3
5 6 7
1000 200
Output
206
----------------------------------------------------------------------------------------------------
