poj--3438--LOOK and SAY
来源:互联网 发布:新浪邮箱pop3设置端口 编辑:程序博客网 时间:2024/05/16 09:23
水题,之前在浙大一次比赛中做过
#include <iostream>#include <cstring>using namespace std;int main(){char a[10000];int t,s=1;cin>>t;while(t--){cin>>a;for(int i=0;a[i]!='\0';i++){if(a[i+1]==a[i]){s++;}else{if(s==1){cout<<"1"<<a[i];}else{cout<<s<<a[i]; s=1;}}}cout<<endl;}return 0;}
- POJ 3438 Look and Say
- poj--3438--LOOK and SAY
- POJ 3438:Look and Say
- POJ 3438 Look and Say (水题)
- POJ 3438 Look and Say(水题)
- POJ 3438 Look and Say(水~)
- POJ 3438 Look and Say G++
- 3438 Look and Say
- Look and Say-3438
- PKU 3438 look and say
- LOOK AND SAY
- poj3438 Look and Say
- POJ3438-Look and Say
- sicily 1491 Look and Say
- Look and say 源码分析
- zoj 2886 Look and Say
- HOJ 2603 Look and Say
- ZOJ 2886 Look and Say
- 费茨定律也有不适用的时候
- 人生培训课--免费
- Learning CPU
- 数据库中最近遇到的问题
- JS收藏
- poj--3438--LOOK and SAY
- 复制文件速度参考
- BlueStacks 一款让Android App无处不在的神器
- 指针的魅力
- Poj 2385 (dp)
- SGU 101 Domino
- hdu 4315 Climbing the Hill
- Linux 自动登录远程主机执行命令
- C函数参数传递