zju2886
来源:互联网 发布:视频片头片尾制作软件 编辑:程序博客网 时间:2024/06/07 04:02
#include <iostream>#include <string>using namespace std;int main(){int T, j;cin >> T;string str;while (T--){cin >> str;for (int i = 0; i < str.size() - 1; ++i){j = i;while (j < str.size() - 1 && str[j] == str[j + 1]) ++j;cout << j - i + 1 << str[i];i = j;}if (str[str.size() - 2] != str[str.size() - 1])cout << 1 << str[str.size() - 1];cout << endl;}return 0;}
- zju2886
- zju2886看和说Look and Say
- C++第14周项目7拓展——涨工资了
- VC2008中将CString转换成const char*的一种有效方法
- (九)机房收费系统项目开发总结报告
- shell脚本 批量转换目录下文件编码
- wikioi 1008 选数 普及组 2002
- zju2886
- Linux操作系统的备份与还原
- 冯诺依曼结构与哈佛结构
- 求两个多项式的和
- 解决Hibernate:could not initialize proxy - no Session
- C语言可变长参数实现“多态”
- IMAGE_OPTIONAL_HEADER32
- zju2857
- ubuntu 星际(stardict)词典与词库的安装