Codeforces Round 461 (Div. 2)


A. Cloning Toys
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
6 3
Output
Yes
Input
4 2
Output
No
Input
1000 1001
Output
Yes
----------------------------------------------------------------------------------------------------
B. Magic Forest
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
6
Output
1
Input
10
Output
2
----------------------------------------------------------------------------------------------------
C. Cave Painting
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
4 4
Output
No
Input
5 3
Output
Yes
----------------------------------------------------------------------------------------------------
D. Robot Vacuum Cleaner
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
4
ssh
hs
s
hhhs
Output
18
Input
2
h
s
Output
1
----------------------------------------------------------------------------------------------------
E. Birds
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
2 12 0 4
3 4
4 2
Output
6
Input
4 1000 10 35
1 2 4 5
1000 500 250 200
Output
5
Input
2 10 7 11
2 10
6 1
Output
11
----------------------------------------------------------------------------------------------------
F. Divisibility
time limit per test: 1 second
memory limit per test: 256 megabytes
input: standard input
output: standard output

Examples
Input
3 3
Output
No
Input
6 6
Output
Yes
5
1 2 4 5 6 
Input
8 3
Output
Yes
4
2 4 5 8
----------------------------------------------------------------------------------------------------
