摘要: 字符串的最小表示法 http://poj.org/problem?id=1509 字符串最小表示法:以某个小标开始字典序最小的串。 假设有两个下标i,j,表示如果从i和从j出发的字符串,有一个k表示字符串的长度,如果长度达到len,就表示找到最小的串。 s[i+k] == s[j+k]: k++ s 阅读全文
posted @ 2019-01-05 16:25 DWVictor 阅读(364) 评论(0) 推荐(0)
摘要: http://poj.org/problem?id=1273 Drainage Ditches Time Limit: 1000MS Memory Limit: 10000K Total Submissions:87219 Accepted: 33916 Description Every time 阅读全文
posted @ 2019-01-05 16:20 DWVictor 阅读(1539) 评论(0) 推荐(1)
摘要: Makoto and a Blackboard time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Makoto and a Bla 阅读全文
posted @ 2019-01-05 16:13 DWVictor 阅读(425) 评论(0) 推荐(0)
摘要: Yuhao and a Parenthesis time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Yuhao and a Pare 阅读全文
posted @ 2019-01-05 16:07 DWVictor 阅读(411) 评论(0) 推荐(0)
摘要: http://m3.codeforces.com/contest/1097/problem/A Gennady and a Card Game time limit per test 1 second memory limit per test 256 megabytes input standar 阅读全文
posted @ 2019-01-05 16:01 DWVictor 阅读(378) 评论(0) 推荐(0)
摘要: https://codeforces.com/contest/1097/problem/A Petr and a Combination Lock time limit per test 1 second memory limit per test 256 megabytes input stand 阅读全文
posted @ 2019-01-05 15:57 DWVictor 阅读(520) 评论(0) 推荐(0)