常见错误
文章平均质量分 87
DTL66
细节决定成败
展开
-
常见错误总结
本文主要是对自己的一些常用但模糊的知识点和常犯错误总结,这些错误很简单但比较容易忽略,在解题或比赛时出现这种错误实在不值得,只要在用这些东西的时候多考虑一下是否合适就能避免此类问题。H. 对于手误不可避免,在写程序多注意,不要要求过快,只要保证写的逻辑和代码不出现问题即可,如果真的出现错误了,不要急,确保一边检查出来,平常写程序时尽量模块化,这样不仅思路清晰而且出现错误方便检查,确定错误区间范围,原创 2016-08-14 01:12:18 · 236 阅读 · 0 评论 -
Uva-10200 Prime Time 【素数+打表+浮点精度】
10200 - Prime TimeEuler is a well-known matematician, and, among many other things, he discovered that the formula n 2 + n + 41 produces a prime for 0 ≤ n < 40. For n = 40, the formula produces 1681,原创 2016-08-14 00:05:40 · 435 阅读 · 0 评论 -
POJ 3080 Blue Jeans【多串最长子串】
Blue JeansTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 16824 Accepted: 7478DescriptionThe Genographic Project is a research partnership between IBM原创 2016-09-14 17:40:45 · 504 阅读 · 0 评论 -
LIGHT OJ 1122 - Digit Count【DP数塔】
1122 - Digit Count PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBGiven a set of digits S, and an integer n, you have to find h原创 2016-08-25 22:40:23 · 419 阅读 · 0 评论 -
LIGHT OJ 1064 - Throwing Dice 【dp数塔+打表】
1064 - Throwing Dice PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBn common cubic dice are thrown. What is the probability tha原创 2016-08-26 01:29:22 · 353 阅读 · 0 评论 -
LIGHT OJ 1189 - Sum of Factorials【贪心+递归】
1189 - Sum of Factorials PDF (English)StatisticsForumTime Limit: 0.5 second(s)Memory Limit: 32 MBGiven an integer n, you have to find whether it can b原创 2016-08-26 22:18:12 · 750 阅读 · 1 评论 -
POJ 3157 And Then There Was One【约瑟夫变形】
And Then There Was OneTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 5100 Accepted: 2743DescriptionLet’s play a stone removing game.Initially, n st原创 2016-09-21 00:40:54 · 454 阅读 · 0 评论 -
ZZULLI OJ Contest - 东北省赛训练赛 Problem E: 蛤玮准备礼物【区间求和(打表思想),闰年,容斥】
Problem E: 蛤玮准备礼物Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 870 Solved: 144SubmitStatusWeb BoardDescription蛤玮的妹子要过生日了,经过千挑万选,蛤玮决定给妹子买一盒水彩铅笔,然而卖多少个才合适呢.机智的蛤玮决定数一数今天是妹原创 2016-09-21 16:36:12 · 558 阅读 · 0 评论 -
ZZULI OJ 1874: 蛤玮学计网【讨论(解题分析总结)】
1874: 蛤玮学计网Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 1181 Solved: 183SubmitStatusWeb BoardDescription蛤玮最近学习了关于ip的知识,于是他迫不及待的想把新知识传授给她的妹子.蛤玮的妹子随便写下了一个字符串,蛤玮现在要告诉她这个字符串是不是一个合法的ip原创 2016-09-21 23:36:39 · 475 阅读 · 0 评论 -
CodeForces - 237C Primes on Interval 【二分】
C. Primes on Intervaltime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou've decided to carry out a survey i原创 2016-10-21 19:54:19 · 297 阅读 · 0 评论 -
LIGHT OJ 1006 - Hex-a-bonacci 【化简递推式(DP)】
1006 - Hex-a-bonacci PDF (English)StatisticsForumTime Limit: 0.5 second(s)Memory Limit: 32 MBGiven a code (not optimized), and necessary inputs, you h原创 2016-08-25 21:03:28 · 430 阅读 · 0 评论 -
LIGHT OJ 1331 - Agent J 【余弦定理+海伦公式】
1331 - Agent J PDF (English)StatisticsForumTime Limit: 1 second(s)Memory Limit: 32 MBAgent J is preparing to steal an antique diamond piece from a mus原创 2016-08-25 20:27:49 · 516 阅读 · 0 评论 -
LIGHT OJ 1225 - Palindromic Numbers (II)【回文数】
1225 - Palindromic Numbers (II) PDF (English)StatisticsForumTime Limit: 0.5 second(s)Memory Limit: 32 MBA palindromic number or numeral palindrome is原创 2016-08-25 20:14:17 · 484 阅读 · 0 评论 -
POJ 1961 Period【KMP最小循环节】
PeriodTime Limit: 3000MS Memory Limit: 30000KTotal Submissions: 16685 Accepted: 8024DescriptionFor each prefix of a given string S with N characters (each chara原创 2016-09-12 22:51:38 · 391 阅读 · 0 评论 -
HDU 3336 Count the string【EXKMP+逆向思考 OR KMP】
Count the stringTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8959 Accepted Submission(s): 4169Problem DescriptionIt is wel原创 2016-09-13 10:50:52 · 359 阅读 · 0 评论 -
HDU 3746 Cyclic Nacklace【串的最小循环节】
Cyclic NacklaceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7126 Accepted Submission(s): 3117Problem DescriptionCC always原创 2016-09-13 16:31:42 · 315 阅读 · 0 评论 -
HDU 1711 Number Sequence【KMP模板】
Number SequenceTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 22438 Accepted Submission(s): 9593Problem DescriptionGi原创 2016-09-13 17:06:11 · 264 阅读 · 0 评论 -
HDU 4552 怪盗基德的挑战书 【EXKMP】
怪盗基德的挑战书Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1268 Accepted Submission(s): 585Problem Description “在树最美丽的那天,当时间老人再原创 2016-09-13 18:24:06 · 344 阅读 · 0 评论 -
HDU-1573 X问题 【二元一次方程(讨论)+CRT(模方程合并)】
D - X问题Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Description求在小于等于N的正整数中有多少个X满足:X mod a[0] = b[0], X mod a[1] = b[1], X mod a[2] = b[2], …, X mod a[i] = b[i], … (0原创 2016-09-02 23:48:42 · 527 阅读 · 0 评论 -
HDU 3294 Girls' research 【最长回文串+字符周期变换】
Girls' researchTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1900 Accepted Submission(s): 721Problem DescriptionOne原创 2016-09-15 00:15:24 · 367 阅读 · 0 评论 -
POJ 1142 Smith Numbers【Euler分解质因数】
Smith NumbersTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 13574 Accepted: 4626DescriptionWhile skimming his phone directory in 1982, Albert Wilansky,原创 2016-09-03 23:00:43 · 487 阅读 · 0 评论 -
LIGHT OJ-1022 - Circle in Square【浮点精度】
1022 - Circle in Square PDF (English)StatisticsForumTime Limit: 0.5 second(s)Memory Limit: 32 MBA circle is placed perfectly into a square. The term p原创 2016-08-25 19:21:15 · 393 阅读 · 0 评论 -
HDU 1575 Tr A【矩阵快速幂取模】
Tr ATime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4510 Accepted Submission(s): 3394Problem DescriptionA为一个方阵,则Tr A表示A的迹原创 2016-11-09 17:49:15 · 346 阅读 · 0 评论