Sakura Adachi and Optimal Sequences
2171G2000· candidate master4s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
861 3 6 4 3 23 7 10 4 4 821 14 352 3 2 5 118 13 10 30 755 4 3 6 2100 125 231 113 10742 2 2 22 2 2 241 1 1 12 2 2 271 1 1 1 1 1 200000200000 200000 200000 200000 200000 200000 2000003542264 174876 441510641112 325241 995342
Output
17 8271163 112 28835 5678120 11 11199994 0803045 366998
58%
2171G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)