Hard Demon Problem
2044H2100· master3.5s512 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
24 31 5 2 44 9 5 34 5 2 31 5 5 21 1 4 42 2 3 31 2 4 33 31 2 34 5 67 8 91 1 1 31 3 3 32 2 2 2
Output
500 42 16814 42 5
58%
2044H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)