This is an interactive problem. In the output section below you will see the information about flushing the output. On Sunday Leha the hacker took Nura from the house where she lives and went with her to one of the most luxurious restaurants in Vičko…
codeforces 810 D. Glad to see you! http://codeforces.com/contest/810/problem/D 题意 大小为k的集合,元素的范围都在[1,n],每次可以询问(x,y),如果min|x-a|<=min|y-b| a,b∈S,交互库返回”TAK",否则返回“NIE”. 分析 怎么确保能找到答案.我们可以将(1-n)分成两份(1-mid)(mid+1-r),显然要猜的数肯定是在这两个区间内. 然后怎么判断我们可以找mid和mid+1两…