ACM-数组
星琳之梦
这个作者很懒,什么都没留下…
展开
-
UVa1586 分子量+hdu1274的3ab(b)
数组练习题 这道题让人想起了河南省赛,改进啊…然而这题2007年就有了… 题目解法参考hdu1274 【输出3(ab2(cd))->>abcdcdabcdcdabcdcd】网上大神的解法写了该题。链接和题解在最后 这道题没有括号,每个英文后面或许没有,或许为数字。先判断字母,然后判断应该是几个 #include #include #include #include us原创 2016-03-07 21:28:01 · 618 阅读 · 0 评论 -
UVa1225 Digit Counting
本题不难,数组循环,简单打表 自己太水,开始竟然忽略了(n-1)和n的关系,n的各个数字出现情况只需要在n-1的情况下再考虑n就好了 1225 - Digit Counting Time limit: 3.000 seconds #include #include #include #define maxn原创 2016-03-09 08:43:33 · 222 阅读 · 0 评论 -
UVa 455 Periodic Strings【最小循环子串】
A character string is said to have period k if it can be formed by concatenating one or more repetitions of another string of length k. For example, the string "abcabcabcabc" has period 3, since it原创 2016-03-09 09:29:38 · 959 阅读 · 0 评论