cf/mirror

Guess the String

CF
1765G2600· international gm6s512 MB⇄ interactive

Examples

Sample 1of 1
Input
2 // 2 test cases
6 // n = 6
 
0 // p[3] = 0
 
1 // q[2] = 1
 
4 // q[6] = 4
 
1 // p[4] = 1
 
1 // answer is correct
5 // n = 5
 
1 // p[2] = 1
 
2 // q[4] = 2
 
2 // q[5] = 2
 
1 // answer is correct
Output
1 3 // what is p[3]?
 
2 2 // what is q[2]?
 
2 6 // what is q[6]?
 
1 4 // what is p[4]?
 
0 011001 // the guess is 011001
 
 
1 2 // what is p[2]?
 
2 4 // what is q[4]?
 
2 5 // what is q[5]?
 
0 00111 // the guess is 00111
1765G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)