Keen Tree Calculation
1866K2500· grandmaster2s512 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
75 1 21 4 23 4 12 5 36 1 64 7 224 33 2
Output
1811
Sample 2of 2
Input
31 2 10000000002 3 100000000012 1000000000
Output
2000000000000000000
58%
1866K.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…