摘要:
acm题在博客园停更了。队友都在csdn我一个人在这边也不好。有兴趣阅读的同学,也欢迎来我的新博客阅读附:http://blog.csdn.net/u010579068 阅读全文
摘要:
RootTime Limit: 30000/15000 MS (Java/Others)Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 34Accepted Submission(s): 6Problem Descrip... 阅读全文
摘要:
1135原根基准时间限制:1秒 空间限制:131072KB 分值:0难度:基础题设m是正整数,a是整数,若a模m的阶等于φ(m),则称a为模m的一个原根。(其中φ(m)表示m的欧拉函数)给出1个质数P,找出P最小的原根。Input输入1个质数P(3 3 #include 4 #include 5... 阅读全文
摘要:
官方解题报告:http://bestcoder.hdu.edu.cn/blog/2015-multi-university-training-contest-6-solutions-by-zju/表示很难看。。。。orz1003题 链接:http://acm.hdu.edu.cn/showprobl... 阅读全文
摘要:
很久没搞博弈了。先来写个模板: 现在我们来研究一个看上去似乎更为一般的游戏:给定一个有向无环图和一个起始顶点上的一枚棋子,两名选手交替的将这枚棋子沿有向边进行移动,无法移动者判负。事实上,这个游戏可以认为是所有Impartial Combinatorial Games的抽象模型。也就是说,任何一... 阅读全文
摘要:
1503: 点到圆弧的距离Time Limit:1 SecMemory Limit:128 MBSpecial JudgeSubmit:325Solved:70[Submit][Status][Web Board]Description输入一个点P和一条圆弧(圆周的一部分),你的任务是计算P到圆弧的... 阅读全文
摘要:
Integer PartitionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 524 Accepted Submission(s): 238P... 阅读全文
摘要:
PartitionTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 954 Accepted Submission(s): 545Problem D... 阅读全文
摘要:
三角形Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5598Accepted Submission(s): 3816Problem Descrip... 阅读全文
摘要:
Tri TilingTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2731Accepted Submission(s): 1547Problem ... 阅读全文
摘要:
小兔的棋盘Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7547Accepted Submission(s): 4020Problem Descr... 阅读全文
摘要:
什么是Catalan数说到Catalan数,就不得不提及Catalan序列,Catalan序列是一个整数序列,其通项公式是我们从中取出的就叫做第n个Catalan数,前几个Catalan数是:1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, 58786... 阅读全文
摘要:
A. Kyoya and PhotobooksKyoya Ootori is selling photobooks of the Ouran High School Host Club. He has 26 photos, labeled "a" to "z", and he has compile... 阅读全文
摘要:
A. Vanya and TableVanya has a table consisting of100rows, each row contains100cells. The rows are numbered by integers from1to100from bottom to top, t... 阅读全文
摘要:
E. Soldier and Traveling,
D-Soldier and Number Game,
C-Soldier and Cards,
B - Soldier and Badges,
A. Soldier and Bananas; 阅读全文
摘要:
不容易系列之一Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16646 Accepted Submission(s): 6935Probl... 阅读全文
摘要:
Children’s QueueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12101 Accepted Submission(s): ... 阅读全文
摘要:
Codeforces Round #307 (Div. 2) 阅读全文
摘要:
L -Minimum Sum LCMTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeUVA 10791题意:输入正整数n,找至少两个数,使得他们的LCM为n且要输出最小的和;思路:既然LC... 阅读全文
摘要:
I -Teams Time Limit:1000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeUVA 11609题意:有n个人,选多个人参加比赛,其中一个是队长,队长不同其他选手... 阅读全文
摘要:
A simple problemAccepted : 61Submit : 418Time Limit : 15000 MSMemory Limit : 655360 KBProblem DescriptionThere is a simple problem. Given a number N. ... 阅读全文
摘要:
K - Integer GameTime Limit:1000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVA 11489题意:在n中取数字,使剩下的数是3的倍数,不能取则失败。思路:如果能使当前数为3... 阅读全文
摘要:
J -Palindrome NumbersTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeUVALive 2889WA了一版面,我也是醉了,就因为一个编译环境不同。。。。。。说多了都是泪。... 阅读全文
摘要:
Add AgainSummation of sequence of integers is always a common problem in Computer Science. Rather than computing blindly, some intelligent techniques ... 阅读全文
摘要:
set是STL中一种标准关联容器(vector,list,string,deque都是序列容器,而set,multiset,map,multimap是标准关联容器),它底层使用平衡的搜索树——红黑树实现,插入删除操作时仅仅需要指针操作节点即可完成,不涉及到内存移动和拷贝,所以效率比较高。set,顾名... 阅读全文
摘要:
Contest2089 - 湖南多校对抗赛(2015.05.31) Swipe(csu1648) 阅读全文
摘要:
Aquarium TankTime Limit:1 SecMemory Limit:128 MBSubmit:15Solved:4[Submit][Status][Web Board]DescriptionYou just bought an “artistic” aquarium tank tha... 阅读全文
摘要:
Again Prime? No time.Input: standard inputOutput: standard outputTime Limit: 1 secondThe problem statement is very easy. Given a number n you have to ... 阅读全文
摘要:
Problem H: HeapsTime Limit:2 SecMemory Limit:128 MBSubmit:48Solved:9[Submit][Status][Web Board]DescriptionZuosige always has bad luck. Recently, he is... 阅读全文