cf/mirror

Optimal Currency Exchange

CF
1214A1400· specialist1.5s512 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
100
60
70
Output
40
Sample 2of 3
Input
410
55
70
Output
5
Sample 3of 3
Input
600
60
70
Output
0
1214A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)