Pashmak and Parmida's problem
459D1800· expert3s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
71 2 1 1 2 2 1
Output
8
Sample 2of 3
Input
31 1 1
Output
1
Sample 3of 3
Input
51 2 3 4 5
Output
0
58%
459D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)