Amanojaku and Sequence (Easy Version)
2228E12400· grandmaster4s512 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
105 14 -1 7 6 -12 2 2 25 14 -1 8 6 -12 3 3 05 14 -1 8 6 -12 4 5 85 14 -1 8 6 72 3 5 215 14 -1 8 6 72 3 5 224 1-1 -1 -1 -12 1 1 44 1-1 -1 -1 -12 1 2 54 1-1 -1 -1 -12 1 3 64 1-1 -1 -1 -12 1 4 74 1-1 -1 3 -12 1 4 5
Output
40100701016205173612180286
58%
2228E1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)