上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include10 #include11 using namespace std;12 #define clr(x,... 阅读全文
posted @ 2015-03-14 12:24 SXISZERO 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题目地址:http://codeforces.com/contest/519/problem/D 26个字母分别给出喜爱程度,用正负整数表示。然后给出一个只包含英文字母的字符串S,如果T为S子串,T第一个字符与最后一个字符相同,且除第一个和最后一个字符外,字符喜爱程度和为0,则为符合要求的子串。求... 阅读全文
posted @ 2015-03-10 09:56 SXISZERO 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 题目地址:http://codeforces.com/contest/493A题 写完后就交了,然后WA了,又读了一遍题,没找出错误后就开始搞B题了,后来回头重做的时候才发现,球员被红牌罚下场后还可以再出现,但不能再参与计算,这里需要开一个flag数组判重。打比赛时要调整好心态。 1 #inclu... 阅读全文
posted @ 2014-12-04 22:06 SXISZERO 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 题目地址:http://codeforces.com/contest/486A题.Calculating Function奇偶性判断,简单推导公式。 1 #include 2 #include 3 4 using namespace std; 5 6 int main() 7 { 8 l... 阅读全文
posted @ 2014-12-01 20:59 SXISZERO 阅读(151) 评论(0) 推荐(0) 编辑
摘要: A Simple Problem with IntegersDescriptionYou haveNintegers,A1,A2, ... ,AN. You need to deal with two kinds of operations. One type of operation is to ... 阅读全文
posted @ 2014-11-27 11:10 SXISZERO 阅读(193) 评论(0) 推荐(0) 编辑
摘要: StarsDescriptionAstronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the ... 阅读全文
posted @ 2014-11-27 11:06 SXISZERO 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Just a HookTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 18378Accepted Submission(s): 9213Proble... 阅读全文
posted @ 2014-11-27 10:59 SXISZERO 阅读(220) 评论(0) 推荐(0) 编辑
摘要: BillboardTime Limit: 20000/8000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 11861Accepted Submission(s): 5223Problem... 阅读全文
posted @ 2014-11-27 10:56 SXISZERO 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Minimum Inversion NumberTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11788Accepted Submission(s... 阅读全文
posted @ 2014-11-27 10:52 SXISZERO 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 题目地址:http://codeforces.com/contest/485A题.Factory模拟。判断是否出现循环,如果出现,肯定不可能。代码: 1 #include 2 #include 3 4 using namespace std; 5 6 int main() 7 { 8 i... 阅读全文
posted @ 2014-11-17 10:14 SXISZERO 阅读(145) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页