hdoj 1020 Encoding (水题)
思路:创建一个结构体数组,存储子字符串的字符和长度代码如下:#include #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */struct{ char x; int k;}sub[1001