cf/mirror

Neural Network Problem

CF
1431F2100· master5s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
5 5 4
1 1 5 4 5
Output
0
Sample 2of 4
Input
5 2 4
6 1 5 5 6
Output
11
Sample 3of 4
Input
6 1 4
3 3 1 3 1 2
Output
8
Sample 4of 4
Input
6 1 3
2 2 1 2 2 1
Output
5
1431F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)