
模板篇
文章平均质量分 85
DTL66
细节决定成败
展开
-
HDU 4333 Revolving Digits【EXKMP求LCP&&KMP求最小循环节(串旋转)】
Revolving DigitsTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 25182 Accepted Submission(s): 5507Problem DescriptionOne原创 2016-09-12 21:14:48 · 498 阅读 · 0 评论 -
POJ 2001 Shortest Prefixes 【LCP(Trie)】
Shortest PrefixesTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 17620 Accepted: 7664DescriptionA prefix of a string is a substring starting at the be原创 2016-09-15 18:21:38 · 311 阅读 · 0 评论 -
HDU 2222 Keywords Search 【AC自动机(模板题)】
Keywords SearchTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 53340 Accepted Submission(s): 17396Problem DescriptionIn原创 2016-09-16 16:15:02 · 320 阅读 · 0 评论 -
HYSBZ 2190 仪仗队【容斥原理 OR Euler(两种)】
仪仗队Time Limit:10000MS Memory Limit:265216KB 64bit IO Format:%lld & %llu Description 作为体育委员,C君负责这次运动会仪仗队的训练。仪仗队是由学生组成的N * N的方阵,为了保证队伍在行进中整齐划一,C君会跟在仪仗队的左后方,根据其视线所及的学生人数来判断队伍是否整齐(如下图)。 现在,C原创 2016-09-03 18:08:07 · 337 阅读 · 0 评论 -
HDU 3579 Hello Kiki【CRT(互质+不互质)统一】
Hello KikiTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit DescriptionOne day I was shopping in the supermarket. There was a cashier counting coins seriously when a原创 2016-09-03 00:54:20 · 400 阅读 · 0 评论 -
URAL 1748 The Most Complex Number 【区间最大反素数(模板)】
1748. The Most Complex NumberTime limit: 1.0 secondMemory limit: 64 MBLet us define a complexity of an integer as the number of its divisors. Your task is to find the most complex intege原创 2016-09-05 15:28:13 · 482 阅读 · 0 评论 -
LIGHT OJ 1179 - Josephus Problem【约瑟夫(模板)】
1179 - Josephus Problem PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBThe historian Flavius Josephus relates how, in the Rom原创 2016-09-20 23:35:31 · 804 阅读 · 0 评论 -
HDU 1215 七夕节 【约数和定理&&唯一分解定理(模板)】
七夕节Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 42511 Accepted Submission(s): 13503Problem Description七夕节那天,月老来到数字王国原创 2016-11-08 14:56:59 · 529 阅读 · 0 评论 -
UVA 1584 Circular Sequence【串的最小循环表示】
Circular SequenceTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmitDescription Some DNA sequences exist in circular forms as in the following figure, which shows a circular原创 2016-10-18 16:55:36 · 351 阅读 · 0 评论