摘要:
Anton and Making Potions time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output Anton and Makin 阅读全文
摘要:
Period 题目大意: 有多组测试用例,第一行为字符串长度,第二行为字符串,则对字符串的每一个前缀,若存在循环节且循环次数>1,输出长度和最大的循环次数; 每组测试用例后空一行; SampleInput 3 aaa 12 aabaabaabaab 0 SampleOutput Test case 阅读全文
摘要:
KMP算法 时间限制:1000ms 单点时限:1000ms 内存限制:256MB KMP算法 KMP算法 时间限制:1000ms 单点时限:1000ms 内存限制:256MB 描述 小Hi和小Ho是一对好朋友,出生在信息化社会的他们对编程产生了莫大的兴趣,他们约定好互相帮助,在编程的学习道路上一同前 阅读全文
摘要:
struct Complex { double r,i; Complex(double _r,double _i):r(_r),i(_i){} Complex(){} Complex operator +(const Complex &b) { return Complex(r+b.r,i+b.i) 阅读全文
摘要:
后缀数组四·重复旋律4 后缀数组四·重复旋律4 时间限制:5000ms 单点时限:1000ms 内存限制:256MB 描述 小Hi平时的一大兴趣爱好就是演奏钢琴。我们知道一个音乐旋律被表示为长度为 N 的数构成的数列。小Hi在练习过很多曲子以后发现很多作品中的旋律有重复的部分。 我们把一段旋律称为( 阅读全文
摘要:
Outing 题目描述 Organising a group trip for the elderly can be a daunting task... Not least because of the fussy participants, each of whom will only make 阅读全文
摘要:
Clock Pictures 题目描述 You have two pictures of an unusual kind of clock. The clock has n hands, each having the same length and no kind of marking whats 阅读全文
摘要:
Drivers Dissatisfaction time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output Drivers Dissatis 阅读全文
摘要:
Epidemic in Monstropolis time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Epidemic in Mons 阅读全文
摘要:
Kostya the Sculptor time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Kostya the Sculptor 阅读全文