Yet Another Ball Problem
1118E1700· expert3s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
4 3
Output
YES3 11 33 22 3
Sample 2of 3
Input
10 4
Output
YES2 11 34 23 44 33 22 44 11 43 1
Sample 3of 3
Input
13 4
Output
NO
58%
1118E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)