Online Assignment
Time limit2sMemory limit1024 MB
Find the true or false answers to five questions by submitting full answer sets, using the number of correct answers from each rejected submission as feedback.
- Level
Easy3 of 10
- Topics
- Brute force, Bit manipulation
- Solved
- No attempts yet
Problem
You have to finish an assignment by the end of today. You can submit the assignment online, and even if a submission is rejected, you still have several more submission chances.
The assignment consists of five questions, each asking whether a given statement is true or false. Every submission must include answers for all five questions. If all answers are correct, the assignment is completed. If any answer is wrong, the submission is rejected and the number of correct answers is reported.
All the questions are so difficult that you cannot give confident answers to any of them. Write a program that submits answers repeatedly until the assignment is completed. You can submit answers only a limited number of times.