上一页 1 ··· 206 207 208 209 210 211 212 213 214 ··· 221 下一页
摘要: 【题目链接】:http://codeforces.com/contest/822/problem/C【题意】 有n个旅行计划, 每个旅行计划以开始日期li,结束日期ri,以及花费金钱costi描述; 让你在这n个旅行计划中选出两个计划; 要求这两个计划的日期没有相交的部分; 且这两... 阅读全文
posted @ 2017-10-04 18:44 AWCXV 阅读(179) 评论(0) 推荐(0)
摘要: 【题目链接】:http://codeforces.com/contest/822/problem/B【题意】 让你用s去匹配t,问你最少需要修改s中的多少个字符; 才能在t中匹配到s; 【题解】 O(n2)的暴力搞就好; 【Number Of WA】 1 【反思】 一开始... 阅读全文
posted @ 2017-10-04 18:44 AWCXV 阅读(111) 评论(0) 推荐(0)
摘要: 【题目链接】:http://codeforces.com/contest/822/problem/A【题意】 让你求a!和b!的gcd min(a,b)using namespace std;#define lson l,m,rt= b;i--)#define mp make_pa... 阅读全文
posted @ 2017-10-04 18:44 AWCXV 阅读(72) 评论(0) 推荐(0)
摘要: 【题目链接】:http://acm.hdu.edu.cn/showproblem.php?pid=4135【题意】 让你求a..b中与n互质的数的个数. 【题解】 可以用前缀和转化为求1..x内与n互质的数的个数; 先求出n的所有的质因子; 然后设1..x内为第i个质因子的倍数的... 阅读全文
posted @ 2017-10-04 18:44 AWCXV 阅读(109) 评论(0) 推荐(0)
摘要: 【题目链接】:http://acm.uestc.edu.cn/#/problem/show/1544【题意】 【题解】 容斥原理题; 1..(2^m)-1枚举 设k为其二进制形式中1的个数; k为奇数 ans+=2^(k-1)*(n/lcm(对应的k个数)) 否则-=….. 如果不... 阅读全文
posted @ 2017-10-04 18:44 AWCXV 阅读(149) 评论(0) 推荐(0)
摘要: Problem StatementYou are given two ints: n and m. Let D be the number of permutations of the set {1,2,…,n+m} such that the first m values are ... 阅读全文
posted @ 2017-10-04 18:44 AWCXV 阅读(137) 评论(0) 推荐(0)
摘要: 【题目链接】:http://codeforces.com/problemset/problem/821/E【题意】 一开始位于(0,0)的位置; 然后你每次可以往右上,右,右下3走一步; (x+1,y+1),(x+1,y),(x+1,y-1) 然后有n条横线,限制你在横线与x轴之间... 阅读全文
posted @ 2017-10-04 18:44 AWCXV 阅读(309) 评论(0) 推荐(0)
摘要: Problem StatementAlice has a string s of lowercase letters. The string is written on a wall. Alice also has a set of cards. Each card contains... 阅读全文
posted @ 2017-10-04 18:44 AWCXV 阅读(185) 评论(0) 推荐(0)
摘要: Problem StatementYou are given a vector t that describes a rectangular table of zeroes and ones. Each character in t is either ‘0’ or ‘1’. We... 阅读全文
posted @ 2017-10-04 18:44 AWCXV 阅读(131) 评论(0) 推荐(0)
摘要: 【题目链接】:http://codeforces.com/contest/820/problem/B【题意】 给你一个正n边形; 然后让你在这正n边行中选3个点,组成一个角; 找出角的大小和所给的角最接近的角; 【题解】 同弧所对应的圆周角都是相同的; 而且每个正多边行都能作... 阅读全文
posted @ 2017-10-04 18:44 AWCXV 阅读(328) 评论(0) 推荐(0)
上一页 1 ··· 206 207 208 209 210 211 212 213 214 ··· 221 下一页