摘要:
https://ac.nowcoder.com/acm/contest/321#question 代码写得蛮丑的。。真的很丑 像是高中教的veen图,并涉及到容斥原理。 1 #include<cstdio> 2 #include<cmath> 3 #include<cstring> 4 #inclu 阅读全文
posted @ 2018-12-22 16:23
XXrl
阅读(155)
评论(0)
推荐(0)
摘要:
http://oj.acm.zstu.edu.cn/JudgeOnline/problem.php?cid=4953&pid=2 参考:https://blog.csdn.net/yopilipala/article/details/65934939 main那里一直过不了,不知道为啥,然后就去搜了 阅读全文
posted @ 2018-12-22 14:01
XXrl
阅读(435)
评论(0)
推荐(0)
摘要:
时间复杂度: https://blog.csdn.net/qq_41523096/article/details/82142747 【生动形象,引起食欲】 https://blog.csdn.net/Mars93/article/details/75194138 【o(1), o(n), o(log 阅读全文
posted @ 2018-12-22 10:43
XXrl
阅读(188)
评论(0)
推荐(0)
摘要:
http://oj.acm.zstu.edu.cn/JudgeOnline/problem.php?id=4435 懵~ 后来问别人,他让我试着用二进制反推十进制,就晓得了(用(-2)^n)。 这个是学长写的代码 //我写的时候,将它先变成二进制,再给每一个奇数位且值为1的数组的后一位+1,但学长是 阅读全文
posted @ 2018-12-22 10:19
XXrl
阅读(211)
评论(0)
推荐(0)

浙公网安备 33010602011771号