Zhuhai Contest
Zhuhai, China, April 20, 2008
Problem A. Counting in English
Input file: standard input
Output file: standard output
Time limit: 2 seconds
Memory limit: 64 megabytes
Given two positive integers a and b, count from a to b, in English.
Input
The first line contains t (1 ≤ t ≤ 10), the number of test cases followed. Each line contains two strings a
and b(1 ≤ a ≤ b ≤ 10), in lowercase.
Output
For each test case, count from a to b in a single line. Each two consecutive words should be separated
by a single space. Every English word must be in lowercase.
Sample input and output
standard input standard output
3
one four
five nine
ten ten
one two three four
five six seven eight nine
ten
Page 1 of 8
评论0