随笔分类 -  比赛--CodeChef

摘要:Little Chef and Sums 分析:水题,去维护一下前缀和以及后缀和就好,注意long long 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "string" 5 using name 阅读全文
posted @ 2017-09-08 10:19 wolf940509 阅读(175) 评论(0) 推荐(0)
摘要:Chang and Bitwise OR 分析:因为按位或最后肯定小于等于加,所以把所有数按位或即可 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 using namespace std; 5 const int m 阅读全文
posted @ 2017-07-24 09:29 wolf940509 阅读(134) 评论(0) 推荐(0)
摘要:A Good Set 分析:水题,选奇数即可 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "cmath" 5 using namespace std; 6 //const int maxn=110 阅读全文
posted @ 2017-06-08 16:30 wolf940509 阅读(141) 评论(0) 推荐(0)
摘要:Chef and his daily routine 分析:水题,设置优先级,判断如果后面小于前面就输出no 1 #include "iostream" 2 #include "cstdio" 3 #include "cstring" 4 #include "string" 5 using name 阅读全文
posted @ 2017-05-17 00:49 wolf940509 阅读(220) 评论(0) 推荐(0)