cf/mirror

DZY Loves Fibonacci Numbers

CF
446C2400· grandmaster4s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4 4
1 2 3 4
1 1 4
2 1 4
1 2 4
2 1 3
Output
17
12
446C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)