Remove maximum and minimum
Submit solution
Points:
10 (partial)
Time limit:
1.0s
Memory limit:
64M
Authors:
Problem type
Allowed languages
Java 19, Java 8
Description
輸入五個相異的浮點數,去掉最大值和最小值後,依原輸入順序輸出剩下的三個數。
Sample input & output
Input #1
1.5 2.5 3.5 4.5 5.5
Output #1
2.5
3.5
4.5
Input #2
-10.5 -9.5 0 9.5 11.5
Output #2
-9.5
0.0
9.5
Comments