Christmas Reindeer (easy version)
2182F12300· international master4s512 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 72 1 13 53 61 23 63 52 13 5
Output
304104
Sample 2of 3
Input
5 56 9 2 3 53 5181 42 91 103 1016
Output
1232
Sample 3of 3
Input
5 2056 58 31 56 573 5841336999156136981 263 7189345176981336441 433 8537955255658039343 3711289078856020071 541 253 122834517782167712 253 2698374054237693401 03 813328844310754681 233 42569849624440223 6684080039827661023 9234102226533745503 3403137432353114153 5501662824407757693 445344499963496530
Output
000244961284169920032000
58%
2182F1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)