F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

ͳ���ַ�

Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 18948    Accepted Submission(s): 11193


Problem Description
ͳ��һ�������ַ�����ָ�����ַ����ֵĴ���
 

Input
��������������ɲ���������ÿ��������������2�У���1��Ϊһ�����Ȳ�����5���ַ�������2��Ϊһ�����Ȳ�����80���ַ�����ע��������ַ��������ո񣬼��ո�Ҳ������Ҫ��ͳ�Ƶ��ַ�֮һ��������'#'ʱ�����������Ӧ�Ľ����Ҫ�����
 

Output
��ÿ������������ͳ�Ƶ�1�����ַ�����ÿ���ַ��ڵ�2���ַ����г��ֵĴ����������¸�ʽ�����
c0 n0
c1 n1
c2 n2
...
����ci�ǵ�1���е�i���ַ���ni��ci���ֵĴ�����
 

Sample Input
I THIS IS A TEST i ng this is a long test string #
 

Sample Output
I 2 i 3 5 n 2 g 2 ע����2�����������У��ո�Ҳ�DZ�ͳ�Ƶ��ַ�֮һ��
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001001(s) query 1, Server time : 2025-08-08 08:58:38, Gzip enabled