Trash Problem
1418D2100· master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
5 61 2 6 8 101 41 90 60 101 1001 50
Output
57754849
Sample 2of 2
Input
5 85 1 2 4 30 10 20 30 40 51 10000000001 11 500000000
Output
32100000499999999
58%
1418D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)