2018年5月22日

摘要: find your present (2) 题意:找有唯一一个出现奇数次的数 思路:利用位异或。一个数异或自己本身是0; map 阅读全文

posted @ 2018-05-22 12:25 som_nico 阅读(151) 评论(0) 推荐(0) 编辑

摘要: #include using namespace std; typedef long long ll; const int inf = 0x3f3f3f3f; int main() { /*素数筛选*/ /*Eratosthenes筛选*/ /*确定某一个数是素数之后,删除这个数的所有的倍数*/ int n; cin >> n; memse... 阅读全文

posted @ 2018-05-22 10:44 som_nico 阅读(90) 评论(0) 推荐(0) 编辑