Fox and Card Game
388C2000· candidate master1s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
21 1002 1 10
Output
101 10
Sample 2of 4
Input
19 2 8 6 5 9 4 7 1 3
Output
30 15
Sample 3of 4
Input
33 1 3 23 5 4 62 8 7
Output
18 18
Sample 4of 4
Input
33 1000 1000 10006 1000 1000 1000 1000 1000 10005 1000 1000 1000 1000 1000
Output
7000 7000
58%
388C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)