HDU 1020
来源:互联网 发布:dock软件iphone6s 编辑:程序博客网 时间:2024/05/16 14:30
#include<stdio.h>#include<string.h>char str[10001];int main(){ int T,i,cnt,len; char *p,*q; scanf("%d",&T); while(T--) { cnt = 1; scanf("%s",str); len = strlen(str); p = str; for(q = p; q < str+len;q++ ) { while(*q==*(q+1)) { cnt++; q++; } if(cnt!=1) { printf("%d%c",cnt,*q); cnt = 1; } else printf("%c",*q); } puts(""); } return 0;}
0 0
- HDU 1020
- hdu 1020
- hdu 1020
- HDU 1020
- hdu 1020
- HDU 1020
- hdu 1020
- HDU-1020
- hdu 1020
- hdu 1020
- HDU 1020
- hdu 1020
- hdu 1020
- hdu-1020
- HDU 1020
- HDU-1020
- HDU-1020
- hdu 1020 Encoding(模拟)
- POJ 2406
- HDU 1518
- xen的设备I/O环机制
- POJ 2249
- 海阔天空- - - - - - - -送给自己!
- HDU 1020
- HDU 1003
- HDU 1030
- HDU 1031
- HDU 2049
- HDU 1257
- HDU 1878
- HDU 1097
- 学习zigbee入门-9