Sample input 3 5 12 34 56 1 34 3 23 1 6 https://code.sololearn.com/cVaJ8pj16gXp/?ref=app
Учитесь эффективнее, бесплатно:
Введение в Python
7.1M учащихся
Введение в Java
4.7M учащихся
Введение в C
1.5M учащихся
Введение в HTML
7.5M учащихся