Codeforces Round 455 (Div. 2)


A. Generate Login
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
harry potter
Output
hap
Input
tom riddle
Output
tomr
----------------------------------------------------------------------------------------------------
B. Segments
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
2
Output
2
Input
3
Output
4
Input
4
Output
6
----------------------------------------------------------------------------------------------------
C. Python Indentation
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
4
s
f
f
s
Output
1
Input
4
f
s
f
s
Output
2
----------------------------------------------------------------------------------------------------
D. Colorful Points
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
aabb
Output
2
Input
aabcaa
Output
1
----------------------------------------------------------------------------------------------------
E. Coprocessor
time limit per test: 1.5 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
4 3
0 1 0 1
0 1
1 2
2 3
Output
2
Input
4 3
1 1 1 0
0 1
0 2
3 0
Output
1
----------------------------------------------------------------------------------------------------
F. AND-permutations
time limit per test: 2 seconds
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3
Output
NO
NO
Input
6
Output
YES
6 5 4 3 2 1 
YES
3 6 2 5 1 4
----------------------------------------------------------------------------------------------------
