cf/mirror

Walking Between Houses

CF
1015D1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
10 2 15
Output
YES
10 4
Sample 2of 4
Input
10 9 45
Output
YES
10 1 10 1 2 1 2 1 6
Sample 3of 4
Input
10 9 81
Output
YES
10 1 10 1 10 1 10 1 10
Sample 4of 4
Input
10 9 82
Output
NO
1015D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)