Diadrash (Hard Version)
2163D22500· grandmaster3s256 MB⇄ interactive
Examples
Sample 1of 1
Input
34 31 22 41 320146 61 22 43 34 65 56 66124 41 12 23 34 4
Output
? 1 3? 4 4? 1 1? 1 4! 2? 1 6? 3 3? 2 4! 2! 1
58%
2163D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)