Wrong Answer on test 233 (Hard Version)
1227F22400· grandmaster1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 31 3 1
Output
9
Sample 2of 3
Input
5 51 1 4 2 2
Output
1000
Sample 3of 3
Input
6 21 1 2 2 1 1
Output
16
58%
1227F2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)