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

��8

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 12762    Accepted Submission(s): 5242


Problem Description
˭��8���ĺ�,���Ŀ�,���ͷ��Ŀ�,ѧҵ����,��ҵ����,ף��ҷ�,��,��.
 

Input
����ĵ�һ��Ϊһ������N,��ʾ������N������.
ÿ����������һ���ַ���һ������,�ַ���ʾ����,����(>=5)��ʾ�߶�.
 

Output
����������һ���ַ���,���������ܸ߶�ÿ����6������1���ַ���.���ܸ߶ȴ�5���ӵ�6ʱ,�����߿��ȴ�1������2.��Ȧ�߶Ȳ�С����Ȧ�߶�,��Ӧ�����ӽ���Ȧ�߶�,����Ȧ���ھ���������.
ÿ��һ��"8"Ӧ��һ��,����ǰ������޿���.
 

Sample Input
2 A 7 B 8
 

Sample Output
AA AA AA AA AA AA AA AA AA AA AA BBB BB BB BB BB BBB BB BB BB BB BB BB BBB
 

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.001000(s) query 1, Server time : 2025-08-07 09:57:25, Gzip enabled