07 2019 档案

摘要:Fansblog 逆元 Find the answer 树状数组维护,将每个插在排名对应的位置 Blow up the city 支配树https://blog.csdn.net/a710128/article/details/49913553 在dag上求类似的东西,用lca即可,最后用lca统计 阅读全文
posted @ 2019-07-30 20:21 ACforever 阅读(198) 评论(0) 推荐(0)
摘要:http://codeforces.com/contest/1191 A 给一个数,可以加0,1或2然后取模,再映射到字母,字母有排名,求最大排名。 总共只有4种情况,讨论即可 #include<iostream> #include<cstdio> #include<string> #include 阅读全文
posted @ 2019-07-15 23:46 ACforever 阅读(159) 评论(0) 推荐(0)
摘要:http://codeforces.com/contest/1184 A1 找一对整数,使x^x+2xy+x+1=r 变换成一个分式,保证整除 #include<iostream> #include<cstdio> #include<string> #include<cstring> #includ 阅读全文
posted @ 2019-07-10 17:31 ACforever 阅读(283) 评论(0) 推荐(0)
摘要:http://codeforces.com/gym/102253 A 用m个二进制位可以表示10^k,给定m,问k最大是多少 乘一个lg2即可 #include<iostream> #include<cstdio> #include<string> #include<cstring> #includ 阅读全文
posted @ 2019-07-05 17:11 ACforever 阅读(1868) 评论(0) 推荐(0)
摘要:A. 加加减减即可。 #include<iostream> #include<cstdio> #include<string> #include<cstring> #include<algorithm> #include<queue> #define ll long long using names 阅读全文
posted @ 2019-07-02 02:55 ACforever 阅读(161) 评论(0) 推荐(0)