PivotOJ

Infection Estimation

시간 제한: 1000ms메모리 제한: 1024MB출처: NCPC 2020BOJ 21055

문제

A new virus has appeared in country X, with a population of 1010 million people.  This time the country is prepared, and wants to start tracking its spread as quickly as possible.  It is currently only known that at least 100100 and at most 50000005\,000\,000 people are infected, and your job is to provide a more accurate estimate on the number of infected people.

While it will take some time until tests get into mass production, one of the research labs is able to perform up to 5050 tests per day. To improve test efficiency, the researchers have decided to combine tests from multiple people. Each test takes in tissue samples from any chosen number of people, and gets a positive result if there is virus in at least one of them, otherwise a negative result. The tests are performed sequentially -- the result of each test becomes available before the next test can be performed.

Write a program which decides how to perform the tests and provides an estimate of the number of infected people which is within a factor 22 of the actual number of infected people.

힌트

The sample interaction above is shown only for the purpose of illustrating the interaction protocol: there is no way the solution could reliably conclude the given estimate of 250000250\,000 infected people based on the four tests performed.

예제

예제 1

입력
1

0

0

1
출력
test 20

test 20

test 23

test 22

estimate 250000
이 문제는 채점 준비 중입니다. 테스트 데이터가 확보되면 제출이 가능합니다.