DescriptionMohammad has recently visitedSwitzerland. As he loves his friends very much, he decided to buy some chocolate for them, but as this fine ch...
分类:
其他好文 时间:
2015-07-17 22:21:23
阅读次数:
122
大巧克力问题题目大意:Mohammad has recently visitedSwitzerland. As he loves his friends very much, he decided to buy some chocolate for them, but as this fine ch...
分类:
其他好文 时间:
2015-07-17 22:17:58
阅读次数:
146
(慢慢看题目,O(∩_∩)O~)Mohammad has recently visitedSwitzerland. As he loves his friends very much, he decided to buy some chocolate for them, but as this fi...
分类:
其他好文 时间:
2015-07-16 22:03:15
阅读次数:
145
Time Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 446ADescriptionDZY has a sequencea, consisting ofnin...
分类:
其他好文 时间:
2015-07-16 18:49:02
阅读次数:
95
ZYB loves Xor I
Accepts: 142
Submissions: 696
Time Limit: 2000/1000 MS (Java/Others)
Memory Limit: 65536/65536 K (Java/Others)
问题描述
ZYB喜欢研究Xor,现在他得到了一个长度为n的数组A。于是他想知道:对于所有数对...
分类:
其他好文 时间:
2015-07-14 22:42:10
阅读次数:
172
http://acm.hdu.edu.cn/showproblem.php?pid=5282
Problem Description
Xuejiejie loves strings most. In order to win the favor of her, a young man has two strings X, Y to
Xuejiejie. Xuejiejie ha...
分类:
其他好文 时间:
2015-07-14 13:45:05
阅读次数:
171
题目链接:ZCC loves straight flush
题面:
ZCC loves straight flush
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)
Total Submission(s): 827 Accepted Submissio...
分类:
其他好文 时间:
2015-07-08 09:31:16
阅读次数:
133
问题描述
pog在与szh玩游戏,首先pog在纸上画了一棵有根树,这里我们定义1为这棵树的根,然后szh在这棵树中选了若干个点,想让pog帮忙找找这些点的最近公共祖先在哪里,一个点为S的最近公共祖先当且仅当以该点为根的子树包含S中的所有点,且该点深度最大。然而,这个问题是十分困难的,出于szh对pog的爱,他决定只找编号连续的点,即l i
~r i
。
输入描述
若干组数据(不超...
分类:
其他好文 时间:
2015-07-07 22:51:27
阅读次数:
371
【题目链接】click here~~
【题目大意】在给定 的数组里选两个数取模p的情况下和最大
【解题思路】:
思路见官方题解吧~~
弱弱献上代码:
/*
View Code
Problem : 5265 ( pog loves szh II ) Judge Status : Accepted
RunId : 13961817 Language : G++ Autho...
分类:
其他好文 时间:
2015-07-07 14:47:15
阅读次数:
128
题目链接:ZYB loves Score
题面:
ZYB loves Score
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 395 Accepted Submission(s): 232
...
分类:
其他好文 时间:
2015-07-07 09:31:31
阅读次数:
125