
位运算
文章平均质量分 71
ToRe.
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #525 (Div. 2) D. Ehab and another another xor problem
题目链接 题意 存在两个未知数a,b你可以通过一系列问题(交互,询问不超过62次)求得a,b是什么 询问方式给交互姬,两个整数c,d a ^ c > b ^ d,交互姬返回1 a ^ c = b ^ d,交互姬返回0 a ^ c < b ^ d,交互姬返回-1 思路 当时想询问62次,a,b二进制才30位,大概可以先确定最高位,每两次询问确定a和b的一位,从高到底可以无影响的判断下...原创 2018-12-05 11:37:20 · 397 阅读 · 0 评论 -
UVA 167 The Sultan's Successors (带权8皇后)
The Sultan of Nubia has no children, so she has decided that the country will be split into up to kseparate parts on her death and each part will be inherited by whoever performs best at some test. It原创 2018-04-13 15:56:29 · 447 阅读 · 0 评论