Fibonacci Additions
1634F2700· international gm1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 5 32 2 10 0 0A 1 3A 1 3B 1 1B 2 2A 3 3
Output
YESNONONOYES
Sample 2of 2
Input
5 3 102 5 0 3 53 5 8 2 5B 2 3B 3 4A 1 2
Output
NONOYES
58%
1634F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)