hdu1020Encoding】的更多相关文章

Problem Description Given a string containing only 'A' - 'Z', we could encode it using the following method: 1. Each sub-string containing k same characters should be encoded to "kX" where "X" is the only character in this sub-string.2…
题目链接 http://acm.hdu.edu.cn/webcontest/contest_showproblem.php?pid=1000&ojid=0&cid=7996&hide=0 题目大意: 有一个字符串,如果他的子串连续相等这压缩例如AABBA则变为2A2BA 比赛的时候做了很久,基本上很多人做出来了,而我则一直WA,看题不仔细,英语不过关. 以后看题,先不要用有道翻译,先自己翻译. 我的代码 #include<stdio.h>#include<stri…
Encoding Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) http://acm.hdu.edu.cn/showproblem.php?pid=1020 Problem Description Given a string containing only 'A' - 'Z', we could encode it using the following method: …