HOJ 2603 Look and Say
来源:互联网 发布:域名dns怎么修改 编辑:程序博客网 时间:2024/05/17 22:58
http://acm.hit.edu.cn/hoj/problem/view?id=2603
#include <stdio.h>#include <string.h>int main(){ int cases, n, len, i; char number[1024]; scanf("%d", &cases); getchar(); while (cases--) { gets(number); len = strlen(number); for (i = 0; i < len; i++) { n = 1; while (number[i] == number[i+1] ) { n++; i++; } printf("%d%c", n, number[i]); } printf("\n"); } return 0;}
- HOJ 2603 Look and Say
- hoj 2603 Look and Say
- LOOK AND SAY
- 3438 Look and Say
- poj3438 Look and Say
- Look and Say-3438
- POJ3438-Look and Say
- PKU 3438 look and say
- sicily 1491 Look and Say
- Look and say 源码分析
- POJ 3438 Look and Say
- zoj 2886 Look and Say
- poj--3438--LOOK and SAY
- ZOJ 2886 Look and Say
- ZOJ 2886 Look and Say
- Sicily 1491 Look and Say
- POJ 3438:Look and Say
- I00031 Look-and-say sequence
- HOJ 2620 The Dragon of Loowater
- 大四签约前,这些你知道吗?
- 使用Eclipse Memory Analyzer进行内存泄漏分析三部曲
- Ubuntu 12.04搭建hadoop单机版环境
- android和ihpone的区别
- HOJ 2603 Look and Say
- HOJ 2589 Conversions
- Unity3D之如何创建正确的像素比在屏幕上
- protobuf
- 分析OpenSurf(4)
- HOJ 2546 The right time
- 几乎是唯一能找到的GStreamer视频
- Java Scanner的用法
- android的各个版本的主要区别