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: 4000/2000 MS (Java/Others)    Memory Limit: 262140/131070 K (Java/Others)
Total Submission(s): 88969    Accepted Submission(s): 31803


Problem Description
Ignatius�������һ������,��ʦ�������ܶ൥��(ֻ��Сд��ĸ���,�������ظ��ĵ��ʳ���),������ʦҪ��ͳ�Ƴ���ij���ַ���Ϊǰ׺�ĵ�������(���ʱ���Ҳ���Լ���ǰ׺).
 

Input
�������ݵĵ�һ������һ�ŵ��ʱ�,ÿ��һ������,���ʵij��Ȳ�����10,���Ǵ���������ʦ����Ignatiusͳ�Ƶĵ���,һ�����д������ʱ��Ľ���.�ڶ�������һ����������,ÿ��һ������,ÿ�����ʶ���һ���ַ���.

ע��:����ֻ��һ���������,�������ļ�����.
 

Output
����ÿ������,�����Ը��ַ���Ϊǰ׺�ĵ��ʵ�����.
 

Sample Input
banana band bee absolute acm ba b band abc
 

Sample Output
2 3 1 0
 

Author
Ignatius.L
 

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.000000(s) query 1, Server time : 2025-08-23 13:37:03, Gzip enabled