Buying Jewels
1951D2000· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
37 36 4255 8
Output
YES102 3 4 5 6 7 8 9 10 11NOYES8128 64 32 16 8 4 2 1
58%
1951D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
37 36 4255 8
YES102 3 4 5 6 7 8 9 10 11NOYES8128 64 32 16 8 4 2 1