cf/mirror

Recursive Queries

CF
1117G2500· grandmaster4s256 MB⌨ stdin/stdout

Examples

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