HDU 1061 Rightmost Digit分类: ACM 算法 2011-12-17 17:37
749人阅读 评论(2) 收藏 举报integeroutputinputeach算法c Problem DescriptionGiven a positive
integer N, you sh....
分类:
其他好文 时间:
2014-05-09 10:20:14
阅读次数:
243
http://acm.hdu.edu.cn/showproblem.php?pid=1325
1 #include 2 #include 3 #include 4 #define maxn 5000 5 using namespace std; 6 7
int in[maxn]...
分类:
其他好文 时间:
2014-05-09 08:42:25
阅读次数:
316
http://acm.hdu.edu.cn/showproblem.php?pid=1272 1
#include 2 #include 3 #include 4 #define maxn 50000 5 using namespace std; 6 7
int in[maxn...
分类:
其他好文 时间:
2014-05-09 08:36:38
阅读次数:
393
给出一个序列,将其分割成长度不超过L的若干组。(设为M组)设B0=0,取出第i组的最后一个数设为Bi若B序列单调递增,则该划分合法。在这个前提下,使得 分数=
sigma(Bi^2-Bi-1)最大 (i>0);设元素为a[i];其实就是求一个上升子序列,且元素之间的差不超过L,在求的过程中维护当前的...
分类:
其他好文 时间:
2014-05-09 07:53:21
阅读次数:
375
http://acm.hdu.edu.cn/showproblem.php?pid=3309
1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7
8 char s[30][3...
分类:
其他好文 时间:
2014-05-09 07:52:24
阅读次数:
328
Pie
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9653
Accepted: 3478
Special Judge
Description
My birthday is coming up and traditionally I'm serv...
分类:
其他好文 时间:
2014-05-09 06:33:22
阅读次数:
343
Ultimate Weapon
Time Limit: 2000MS
Memory Limit: 131072K
Total Submissions: 2007
Accepted: 958
Description
In year 2008 of the Cosmic Calendar, the Aliens send a hu...
分类:
其他好文 时间:
2014-05-09 06:28:01
阅读次数:
411
Area2
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1197 Accepted Submission(s): 278
Problem Description
小白最近又被空军特招为飞行员,参与一项实战演习。演...
分类:
其他好文 时间:
2014-05-09 06:19:43
阅读次数:
383
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1711题目意思:给出一条有n个数的序列a[1],a[2],......,a[n],和一条有m
个数的序列b[1],b[2],......,b[m],求出b[1],b[2],...,b[m]在序列a中完全匹...
分类:
其他好文 时间:
2014-05-09 05:53:04
阅读次数:
268
转自http://my.oschina.net/mayqlzu/blog/113528问题:最近lua很火,因为《愤怒的小鸟》使用了lua,ios上有lua解释器?它是怎么嵌入大ios中的呢?lua的官网说:"lua
is an embeddable scripting language",怎么理解...
分类:
其他好文 时间:
2014-05-09 05:32:57
阅读次数:
264