周宝贝周宝贝吧 关注:5贴子:281
  • 0回复贴,共1
Problem statement
Write a program which reads in a sequence of five numbers and then sorts them.
Input
The input consists of five lines, each with a single positive integer. Each value is relatively small (less than ten thousand).
Output
The values must be sorted from lowest to highest and then printed on a single line (a space is required between the values).
Sample Input
2
4
1
5
3
Sample Output
1 2 3 4 5
NOTE CAREFULLY: Pay close attention to spaces and punctuation. Your program must produce exactly the required output (nothing extra) and DETAILS COUNT. The sample input and output are often suggestive. Your program will likely be tested with DIFFERENT data.)


1楼2015-11-05 14:34回复