Preparing for the Contest
377B1900· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
3 4 91 3 1 22 1 34 3 6
Output
YES2 3 2 3
Sample 2of 4
Input
3 4 102 3 1 22 1 34 3 6
Output
YES1 3 1 3
Sample 3of 4
Input
3 4 92 3 1 22 1 34 3 6
Output
YES3 3 2 3
Sample 4of 4
Input
3 4 51 3 1 22 1 35 3 6
Output
NO
58%
377B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)