시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
2 초 | 256 MB | 62 | 12 | 8 | 17.778% |
This is an interactive problem.
The jury has a secret string which consists of exactly $1000$ binary digits. In each test for this problem, the string is fixed in advance and does not change. You have to find this string using queries.
In each query, you choose a segment $[a, b]$ ($1 \leq a \leq b \leq 1000$) to ask about. Then the jury flips a coin, and gives you one of the two values, each with probability of 50%:
You are not allowed to use the same query twice. All random values used in this problem are uniform and independent.
The participant program must interact with the jury program by printing commands in one of the following formats:
Your solution can make at most 18,000 queries.
2 3 3 1 3
? 1 3 ? 1 5 ? 3 5 ? 2 3 ? 2 5 ! 01101
The example above is given only to demonstrate the format. In this example, the string has length $5$. In the real first test, as well as all other tests, the length of the string to guess is exactly $1000$.
Camp > Petrozavodsk Programming Camp > Summer 2018 > Day 7: Izhevsk STU + Ufa SATU Contest E번
Contest > Open Cup > 2018/2019 Season > Stage 2: Grand Prix of Udmurtia E번