cf/mirror

Fibonacci Additions

CF
1634F2700· international gm1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3 5 3
2 2 1
0 0 0
A 1 3
A 1 3
B 1 1
B 2 2
A 3 3
Output
YES
NO
NO
NO
YES
Sample 2of 2
Input
5 3 10
2 5 0 3 5
3 5 8 2 5
B 2 3
B 3 4
A 1 2
Output
NO
NO
YES
1634F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)