网络资源的拷贝粘贴 备份参考之用


6 April 2007

Zorro [算法题]


This puzzle has been in your puzzle list. Your score will not increase when you submit again.

Category: Algorithms Title: Zorro
Description:
Zorro is ready to modernize -- he is tired of hand drawing his giant "Z", and would like to add an educational element. So he wants you to write a program to draw a Z using the lower-case letters of the alphabet in order. If you run out of letters, just continue by following z with a.
Input

A positive integer(<=500) denoting the number of characters across the top of the Z. An input of 0 will indicate that Zorro is done. Output The Z, drawn in lowercase alphabetic characters. Each Z should be separated from the previous Z by at least one blank line.
Examples:

Sample:
Input:
3
0
Output:
abc
@d
efg
_____
Notice: the charactor '@' should be a space.
Time Limitation: 1 s Memory Limitation: 10 MB
Score: 30 Points Language:


No comments:

Google