cf/mirror

Road to Post Office

CF
702D1900· candidate master1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 2
Input
5 2 1 4 10
Output
14
Sample 2of 2
Input
5 2 1 4 5
Output
13
702D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)