cf/mirror

Fafa and Ancient Mathematics

CF
935E2300· international master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
(1?1)
1 0
Output
2
Sample 2of 4
Input
(2?(1?2))
1 1
Output
1
Sample 3of 4
Input
((1?(5?7))?((6?2)?7))
3 2
Output
18
Sample 4of 4
Input
((1?(5?7))?((6?2)?7))
2 3
Output
16
935E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…