摘要:神仙题%%% 场上想了两个小时都没想出来 #include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; #define fi first #define se second #define mp make_pair #de
阅读全文
摘要:用了很神奇的办法,对于每一个数,取反,暴力找它所有子集,如果dfs到的数字又是我们输入的数字,就继续取反暴力找子集 #include <bits/stdc++.h> using namespace std; const int N = (1 << 23) + 10; int a[N]; bool v
阅读全文
摘要:又上分了,好像打的还可以就会懒得补后面的题 A.Kuroni and the Gifts sort一下,没什么好说的 B.Kuroni and Simple Strings 很容易(并非)可以看出最多只需要一次就可以了,举个例子假设你两次删除的分别是(())和 (),你会发现你只需要删除( ( )
阅读全文
摘要:刚开始想打个表... 结果我发现我理解错了题目意思,以为a,b必须是两个不同的数字,然后完全无法理解样例的3为什么是friend number...很尴尬就只能去网上找题解,才发现a,b可以相等(太菜了 其实打表也能做,但是实在是懒,这道题由于n = a * b + a + b -> n + 1 =
阅读全文