C 模拟 #include <iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; #define ll long long const int MAXN=100+5; const ...
分类:
其他好文 时间:
2017-07-30 15:41:25
阅读次数:
190
G - Grade Ted is a employee of Always Cook Mushroom (ACM). His boss Matt gives him a pack of mushrooms and ask him to grade each mushroom according to ...
分类:
其他好文 时间:
2017-07-29 12:52:16
阅读次数:
201
Design T-Shirt Problem Description Soon after he decided to design a T-shirt for our Algorithm Board on Free-City BBS, XKA found that he was trapped b ...
分类:
编程语言 时间:
2017-07-15 16:47:34
阅读次数:
191
Guessing Camels Jaap, Jan, and Thijs are on a trip to the desert after having attended the ACM ICPC World Finals 2015 in Morocco. The trip included a ...
分类:
其他好文 时间:
2017-07-13 10:36:53
阅读次数:
208
Description Jaap, Jan, and Thijs are on a trip to the desert after having attended the ACM ICPC World Finals 2015 in Morocco. The trip included a came ...
分类:
其他好文 时间:
2017-07-12 23:25:30
阅读次数:
212
2014 ACM/ICPC Asia Regional Shanghai Online 给出N个人做M道题的正确率,每道题仅仅能由一个人做出,而且当全部人都做出来且仅做出一道题时,做过题的人才干够继续做题,求最大期望。 一共仅仅有10个人,状压存储每一个人是否已经做出题目,假设都作出则状态清0。 # ...
分类:
其他好文 时间:
2017-06-26 12:52:16
阅读次数:
140
http://poj.org/problem?id=3867 题意:就是要找一个字符串集合,这个集合里面的字符串是原字符串的最多的子串集合构成的。 按照原案例也就是 3 5 A ACM ICPC CONTEST NEERC 而答案是 C 是其中4个字符串的子串 CN是两个字符串的子串 E是两个字符串 ...
分类:
其他好文 时间:
2017-06-09 20:23:18
阅读次数:
197
Problem Description Many geometry(几何)problems were designed in the ACM/ICPC. And now, I also prepare a geometry problem for this final exam. According ...
分类:
其他好文 时间:
2017-06-03 23:32:31
阅读次数:
251
Problem Description Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline ...
分类:
其他好文 时间:
2017-06-03 20:57:34
阅读次数:
115
题目大意: 有K堆石子,每堆有Ki个。两人的操作能够是: 1 从某一堆拿走一个 假设该堆在此之后没有石子了。就消失 2 合并两个堆 求是否先手必胜,先手胜输出Alice。否则输出Bob 思路: 这道题读完后毫无头绪。推了半天也推不个所以然来,參看大神代码后,感觉就是一个记忆化搜索啊,唉,知识学多了不 ...
分类:
其他好文 时间:
2017-05-21 10:50:40
阅读次数:
229