Bender Problem
28A1600· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
4 20 00 22 22 04 4
Output
YES1 -1 2 -1
Sample 2of 3
Input
6 30 01 01 12 12 20 23 2 3
Output
YES1 -1 2 -1 3 -1
Sample 3of 3
Input
6 30 01 01 12 12 20 22 2 3
Output
NO
58%
28A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)