| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 10 초 (추가 시간 없음) | 2048 MB | 131 | 36 | 27 | 23.276% |
You are tasked with creating a secret sequence of integers that is difficult to guess.
The sequence is subject to the following constraints:
At first, all you need to reveal is the length of the sequence.
Then, an adversary will guess the numbers in the sequence one at a time.
Note that because you are not forced to write down the sequence in advance, you can "cheat" by changing the sequence you have in mind, so long as it does not contradict the information you have revealed so far. It turns out that under these conditions, you can always force the adversary to get 33ドル,333円$ misses before they can guess every number in your sequence. Your job is to write a program that does so.
Your program should begin by printing $k$ $(2 \leq k \leq 100,001円),ドル the length of your sequence, as a single integer on a single line. After this, you will receive one integer $x$ on a single line. This integer is guaranteed to be between $-1$ and 100ドル,000円$ inclusive.
Do not forget to flush the output after every integer you print.
After this, if your program has not yet exited, the process will repeat, with you receiving another single integer. The adversary is guaranteed to never repeat integers.
The adversary may employ different guessing strategies on different runs.
0 1 -1
50001 1 -1 0 2 <omitted 49997 lines for brevity> 99998 100000
ICPC > Regionals > North America > Pacific Northwest Regional > 2023 ICPC Pacific Northwest Region > Division 1 K번
ICPC > Regionals > North America > Pacific Northwest Regional > 2023 ICPC Pacific Northwest Region > Division 2 M번
ICPC > Regionals > North America > South Central USA Regional > 2023 South Central USA Regional Contest > Division 1 J번
ICPC > Regionals > North America > South Central USA Regional > 2023 South Central USA Regional Contest > Division 2 J번
ICPC > Regionals > North America > Mid-Atlantic Regional > 2023 Mid-Atlantic USA Regional Contest > Division 1 J번
ICPC > Regionals > North America > Mid-Atlantic Regional > 2023 Mid-Atlantic USA Regional Contest > Division 2 J번
ICPC > Regionals > North America > Southeast USA Regional > 2023 Southeast USA Regional Programming Contest > Division 1 J번
ICPC > Regionals > North America > Southeast USA Regional > 2023 Southeast USA Regional Programming Contest > Division 2 J번