Swap Dilemma
1983D1700· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
641 2 3 41 2 3 451 3 4 2 57 1 2 5 441 2 3 44 3 2 131 2 31 3 251 5 7 1000 44 1 7 5 100031 4 21 3 2
Output
YESNOYESNONONO
58%
1983D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)