biggest? smallest? average?


Submit solution

Points: 25 (partial)
Time limit: 5.0s
Memory limit: 256M

Authors:
Problem type

題目說明

統一使用int

輸出三個正整數的最大值、最小值、平均數

若輸出為負值 則輸出wrong! 並結束程式: System.exit(0);

輸入

三整數

輸出

(照順序)最大值 最小值 平均數

三變數中間請穿插"\t"

System.out.print(最大值+"\t"+最小值+"\t"+平均數);

若未照此格式輸出可能會有錯誤 請同學多加注意

sample input1

1 
2 
3

sample output1

3   1   2

sample input2

5 
5 
5

sample output2

5   5   5

sample input3

-1 
0 
6

sample output3

wrong!

Comments

There are no comments at the moment.