bc#31-1 pairshttp://bestcoder.hdu.edu.cn/contests/contest_showproblem.php?pid=1001&cid=569数轴上有n个点(x[i],0),(i=0,1,2,…,n?1),求解有几对点使得 that |x[b]?x[a]|≤k....
链接:click here
题意:
A Simple Problem
时间限制:3000 ms | 内存限制:65535 KB
难度:2
描述You know, just as the title imply, this is a simple problem. In a contest, given the team-id, solved, pena...
分类:
编程语言 时间:
2015-02-23 23:40:36
阅读次数:
325
http://codeforces.com/contest/348/problem/BB. Apple Treetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandar...
分类:
移动开发 时间:
2015-02-11 23:14:33
阅读次数:
284
题目链接:http://acm.sgu.ru/problem.php?contest=0&problem=455Due to the slow 'mod' and 'div' operations with int64 type, all Delphi solutions for the probl...
分类:
编程语言 时间:
2015-02-11 21:48:03
阅读次数:
322
题目:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=68990#problem/A题目需求:,给n个数字,将它们重新排序得到一个最大的数字,好像给出123 456 789 拼为 789456123 最大这题可以算是一个排序题,不过排序的规...
分类:
编程语言 时间:
2015-02-04 00:34:37
阅读次数:
332
题目链接:http://codeforces.com/contest/510/problem/C题目大意:构造一个字母表,使得按照你的字母表能够满足输入的是按照字典序排下来。递归建图:竖着切下来,将每个名字的第x个字母从上到下连接建图。然后求拓扑排序。之所以要拓扑排序,因为要判断在x-1里面有a--...
分类:
编程语言 时间:
2015-02-03 14:40:27
阅读次数:
215
2015 年 JXNU_ACS 算法组寒假第二次周赛
比赛链接:http://acm.hdu.edu.cn/diy/contest_show.php?cid=26246
Start Time : 2015-02-01 13:00:00
End Time : 2015-02-01 17:30:00
终榜:http://acm.hdu.edu.cn/diy/conte...
分类:
编程语言 时间:
2015-02-01 19:11:54
阅读次数:
224
Number sequenceMy Tags(Edit)Source:SCU Programming Contest 2006 FinalTime limit: 1 secMemory limit: 64 MSubmitted: 1598,Accepted: 432Given a number se...
分类:
编程语言 时间:
2015-01-28 21:03:37
阅读次数:
223
题目链接:http://codeforces.com/contest/505/problem/D
题目大意:
在一个图中,有n个顶点,给出m对数字(u,v)表示顶点u和顶点v必须直接或者间接相连,让你构造一个这样的图,输出最少需要多少条边。
分析:
毫无疑问,n个顶点的话,我们最多可以用n条边,使得n个顶点构成一个环,满足所有的情况(任意两点都是联通的),但是这并不一定是最少的边。
于是...
分类:
移动开发 时间:
2015-01-28 17:57:22
阅读次数:
209
2015 UESTC Winter Training #8The 2011 Rocky Mountain Regional ContestRegionals 2011>>North America - Rocky Mountain开始时貌似是UVAlive挂了,无论交什么都WA,后来转战HDU这次水...