Survival of the Weakest (easy version)
1805F12600· international gm3s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
51 2 4 5 6
Output
34
Sample 2of 4
Input
91 1 1 7 7 7 9 9 9
Output
256
Sample 3of 4
Input
71 7 9 2 0 0 9
Output
20
Sample 4of 4
Input
31000000000 1000000000 777
Output
1540
58%
1805F1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)