cf/mirror

Rin and The Unknown Flower

CF
1292E3500· legendary gm2s256 MB⇄ interactive

Examples

Sample 1of 2
Input
1
4
 
2 1 2
 
1 2
 
0
 
1
Output
? C
 
? CH
 
? CCHO
 
! CCHH
Sample 2of 2
Input
2
5
 
0
 
2 2 3
 
1
8
 
1 5
 
1 5
 
1 3
 
2 1 2
 
1
Output
? O
 
? HHH
 
! CHHHH
 
 
? COO
 
? COOH
 
? HCCOO
 
? HH
 
! HHHCCOOH
1292E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)