Quantum Competitive Programming

The input format says "two spaced separated integers G and i", but G is "H", "X" or "Z" (not an integer).

Submitting to 'Quantum Competitive Programming'


You're not logged in! Click here to login


Submitting to 'Quantum Competitive Programming'


You're not logged in! Click here to login


Submitting .cpp to 'Quantum Competitive Programming'


You're not logged in! Click here to login

Time Limit: 1 Seconds
Memory Limit: 1024MB
Your best score: 0
Source: RI November Course 2025 Contest 1 (bribritt)

Subtask Score
1 5
2 13
3 3
4 12
5 7
6 19
7 18
8 23
9 0