Deterministic Heap (Easy Version)
2001E12400· grandmaster3s512 MB⌨ stdin/stdout
Examples
Sample 1of 3multi-test • hover to link
Input
71 13 9982443532 1 9982443533 2 9982448533 3 9982443533 4 1000000374 2 1000000394 3 100000037
Output
12125212432304
Sample 2of 3multi-test • hover to link
Input
1500 500 100000007
Output
76297230
Sample 3of 3multi-test • hover to link
Input
687 63 10000003777 77 100000039100 200 998244353200 100 99824435332 59 9982448531 1 998244353
Output
2683123294573603371476498475649467270608981
58%
2001E1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…