Guess the String
1765G2600· international gm6s512 MB⇄ interactive
Examples
Sample 1of 1
Input
2 // 2 test cases6 // n = 60 // p[3] = 01 // q[2] = 14 // q[6] = 41 // p[4] = 11 // answer is correct5 // n = 51 // p[2] = 12 // q[4] = 22 // q[5] = 21 // 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 0110011 2 // what is p[2]?2 4 // what is q[4]?2 5 // what is q[5]?0 00111 // the guess is 00111
58%
1765G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)