Guess One Character
2038G1900· candidate master2s512 MB⇄ interactive
Examples
Sample 1of 1
Input
3 // 3 test cases3 // the length of the string is 31 // 101 occurs once1 // guessed correctly2 // the length of the string is 20 // 00 occurs zero times0 // 0 occurs zero times1 // guessed correctly2 // the length of the string is 21 // 1 occurs once0 // 01 occurs zero times1 // guessed correctly
Output
1 101 // how many times 101 occurs0 2 0 // guess: s[2] is 01 00 // how many times 00 occurs1 0 // how many times 0 occurs0 1 1 // guess: s[1] is 11 1 // how many times 1 occurs1 01 // how many times 01 occurs0 2 0 // guess: s[2] is 0
58%
2038G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)