上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 99 下一页

2012年7月24日

DNA-AND-DNA

摘要: DNA-AND-DNATime Limit : 3000/1000ms (Java/Other)Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 91Accepted Submission(s) : 45Font:Times New Roman|Verdana|GeorgiaFont Size:←→Problem Description生物学家们发现了一个奇怪的DNA分子,可以将它们看作一个由集合{A,B} 中的元素组成的N个字符的序列。由于一系列的突变使得DNA链只包含A。生物学家发现这很奇怪,所以他们开始研究更详细的 阅读全文

posted @ 2012-07-24 15:15 more think, more gains 阅读(361) 评论(0) 推荐(0) 编辑

数字游戏

摘要: 数字游戏Time Limit : 3000/1000ms (Java/Other)Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 165Accepted Submission(s) : 49Font:Times New Roman|Verdana|GeorgiaFont Size:←→Problem Description小艾和小牛在上数学课的时候觉得非常的无聊,于是他们想出了一个新的游戏,小牛写下N位的数字,小艾的任务就是在去除了K位后得到一个最大的数。Input输入有多组数据。第一行输入一个N和一个K( 1 < 阅读全文

posted @ 2012-07-24 14:39 more think, more gains 阅读(192) 评论(0) 推荐(0) 编辑

HDU 4302 Holedox Eating

摘要: 令我及其伤心的一题啊。比赛的时候想用HASH写,波波写出来果断TLE。正解:1.STL,set2.优先队列3.线段树树状数组线段树:View Code #include<stdio.h>#include<stdlib.h>#include<iostream>#include<string.h>#include<algorithm>using namespace std;#define MAXN 401010const int inf = 0xFFFFFF;struct node{ int l, r, num, Lm, Rm;}T[MA 阅读全文

posted @ 2012-07-24 13:52 more think, more gains 阅读(181) 评论(0) 推荐(0) 编辑

2012年7月22日

Developing school contest 2

摘要: Problem HTime Limit : 3000/1000ms (Java/Other)Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 100Accepted Submission(s) : 63Font:Times New Roman|Verdana|GeorgiaFont Size:←→Problem DescriptionNow that spring is here and the sun is shining bright, people are starting to lower their blind 阅读全文

posted @ 2012-07-22 20:46 more think, more gains 阅读(274) 评论(0) 推荐(0) 编辑

POJ 3294 Life Forms 二分 + 哈希

摘要: 终于搞死这题了,先是TLE,后是MLE, 然后是WA,AC得的不容易啊。。多项式差值取模神奇的算法。。。1280msView Code #include<stdio.h>#include<string.h>#include<stdlib.h>#include<iostream>#include<algorithm>#include<string>#include<vector>#include<set>using namespace std;#define Prime 113#define MOD 阅读全文

posted @ 2012-07-22 07:29 more think, more gains 阅读(149) 评论(0) 推荐(0) 编辑

上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 99 下一页

导航