原创 Light OJ Substring Frequency (II)

1427 - Substring Frequency (II) PDF (English) Statistics Forum Time Limit: 5 second(s) Memory Limit: 128 MB

原创 數據讀入加速

//適用於正整數 template <class T> inline void scan_d(T &ret) { char c; ret=0; while((c=getchar())<'0'||c>'9'); while(c>='

原创 codeforces 150C Smart Cheater

C. Smart Cheater time limit per test 5 seconds memory limit per test 256 megabytes input standard input output

原创 2013年3月23號競賽題目一 平衡負載

平衡負載 Du熊正在負責一個大型的項目,目前有K臺服務器,有N個任務需要用這K臺服務器來完成,所以要把這些任務分成K個部分來完成,在同上臺服務器上執行的任務必須是連續的任務,每個任務有各自需要的執行時間。 例如N=5,K=2,每個任

原创 KMP 模式匹配

KMP算法:一種用於字符串匹配的算法,精髓之處在於求next數組 模式串 a b c d a b d a c 下標 1 2 3 4 5 6 7 8 9 next數組 0 0 0 0 1 2 0 1 0 #include<cstdio>

原创 FZU 2113 Jason的特殊愛好

Problem 2113 Jason的特殊愛好  Accept: 87    Submit: 300 Time Limit: 1000 mSec    Memory Limit : 32768 KB Problem Des

原创 AcDream 1083: 完美數

1083: 完美數 Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 208  Solved: 57 [Submit][Status][Web Board] Description 8是中

原创 2013年3月30日競賽題目二 Sigma

Sigma Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65535/32768K (Java/Other) Problem Description 小H是一個程序員

原创 URAL 1684 Jack's Last Word

1684. Jack's Last Word Time Limit: 0.5 second Memory Limit: 64 MB Not long ago Jack read on a fence a word that was ne

原创 zoj 3641 Information Sharing

Information Sharing Time Limit: 3 Seconds      Memory Limit: 65536 KB There is going to be a test in the kindergarten.

原创 FZU 2019 Mountain Number

Problem 2109 Mountain Number Accept: 49    Submit: 120 Time Limit: 1000 mSec    Memory Limit : 32768 KB Problem De

原创 codeforces236B Easy Number Challenge

B. Easy Number Challenge time limit per test 2 seconds memory limit per test 256 megabytes input standard input

原创 hdu 4544 湫湫系列故事——消滅兔子

湫湫系列故事——消滅兔子 Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 2

原创 zoj 3642 Just Another Information Sharing Problem

Just Another Information Sharing Problem Time Limit: 2 Seconds      Memory Limit: 65536 KB There is going to be another

原创 Codeforces 35E

E. Parade time limit per test 4 seconds memory limit per test 64 megabytes input input.txt output output.t