Ones
시간 제한1초메모리 제한1024 MB
주어진 구간 [l,r]에 1이 있는지 묻는 질의만으로, 1이 정확히 k개인 숨겨진 이진 수열을 찾는 문제다.
문제
Radko again wants to know Marti’s sequence . This time, Marti decided to be more helpful and directly say that the sequence consists of bits of and , exactly of which are . This time he will only answer the following question:
- “Is there a among ?”
Unfortunately, Radko is still too busy and again outsources the task to you. Your program will be tested on subtests for each test, and your score will be calculated based on the total number of questions you use to find the respective sequences.
제한
- Every sequence is uniform random generated.
예제
이 문제는 공개된 예제가 없습니다.