传送门
GTY's math problem
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 568 Accepted Submission(s): 263
Problem Description...
分类:
其他好文 时间:
2015-02-09 18:32:13
阅读次数:
164
GTY's birthday giftTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others) 【Problem Description】FFZ's birthday is coming. GTY ...
分类:
其他好文 时间:
2015-02-09 12:38:17
阅读次数:
189
GTY's birthday gift Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others) ...
分类:
其他好文 时间:
2015-02-09 01:58:58
阅读次数:
220
Problem Description
GTY has n gay
friends. To manage them conveniently, every morning he ordered all his gay friends to stand in a line. Every gay friend has a characteristic value ai ,
to expr...
分类:
其他好文 时间:
2015-02-08 18:14:38
阅读次数:
114
传送门GTY's gay friendsTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 264Accepted Submission(s): 57P...
分类:
其他好文 时间:
2015-02-08 18:00:14
阅读次数:
199
题目大意:GTY的朋友ZZF的生日要来了,GTY问他的基友送什么礼物比较好,他的一个基友说送一个可重集吧!于是GTY找到了一个可重集S,GTY能使用神犇魔法k次,每次可以向可重集中加入一个数 a+b ,现在GTY想最大化可重集的和,这个工作就交给你了。 注:可重集是指可以包含多个相同元素的集合思路:...
分类:
其他好文 时间:
2015-02-08 15:19:16
阅读次数:
159
#include#include#include#includeusingnamespacestd;constintMAX=100000+10;intres[MAX>1;build(L,mid,o=R){returnres[o];}intmid=(L+R)>>1;inttt=0;if(lsmid)t...
分类:
其他好文 时间:
2015-02-08 10:14:47
阅读次数:
146
题目链接:HDU 5171 GTY's birthday gift
题意:每次将序列中两个数相加再加入序列中,反复操作k次,问k次操作后的序列和最大是多少。
思路:序列和最大,显然是每次取序列中最大的两个数相加。
3 2
6 3 2
第一步:6 + 3 = 9
1 * 6 + 1 * 3 = 9
第二步:6 + 3 + 6 = 15
2 * 6 + 1 * 3 = 15
第三步...
分类:
其他好文 时间:
2015-02-08 09:08:51
阅读次数:
274