| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 1024 MB | 111 | 59 | 42 | 52.500% |
You have to finish an assignment by the end of today. You can submit the assignment online and, even if your submission is rejected, you still have several more submission chances.
The assignment consists of five questions, each of which asks whether or not a given statement is true. For each submission, you have to submit answers for all five questions. If your answers are correct for all the questions, your assignment is completed. However, if any of your answers are wrong, your submission is rejected, and the number of correct answers will be told.
All the questions are so difficult that you cannot give confident answers to any of them. Your task here is to write a program that tries to submit answers repeatedly until the assignment is completed. Note that you can submit answers only a limited number of times.
For each submission, your program should output exactly five characters without any delimiters followed by a newline to the standard output. Each character should be either t or f. The $i$-th character being t means the statement of the $i$-th question is judged to be true. Similarly, the character f means it is judged to be false.
After the output, you will receive a feedback from the standard input: either “rejected $C$” or “completed” followed by a newline. When you receive rejected $C,ドル it means that at least one of your answers is wrong, and $C$ is the number of correct answers. In this case, your program should submit another answer. When you receive completed, your assignment is completed. Your program should terminate without extra output.
Your program can submit answers at most 12ドル$ times. If your 12ドル$-th submission is still rejected, your program will be judged as “Wrong Answer”.
Notes on interactive judging:
tffft fffft ttfft
rejected 4 rejected 3 completed
fffff
completed
ICPC > Regionals > Asia Pacific > Asia Pacific Championship > The 2024 ICPC Asia Pacific Championship 연습 세션 PC번
ICPC > Regionals > Asia Pacific > Asia Pacific Championship > The 2025 ICPC Asia Pacific Championship 연습 세션 C번