cf/mirror

Knights of a Polygonal Table

CF
994B1400· specialist1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
4 2
4 5 9 7
1 2 11 33
Output
1 3 46 36
Sample 2of 3
Input
5 1
1 2 3 4 5
1 2 3 4 5
Output
1 3 5 7 9
Sample 3of 3
Input
1 0
2
3
Output
3
994B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)