Rounded Average of Three Floats


Submit solution

Points: 10 (partial)
Time limit: 1.0s
Memory limit: 64M

Author:
Problem type

題目說明

程式輸入三個浮點數,輸出四捨五入後的平均值。(註:也就是對於平均值進行四捨五入)

輸入規範

三個浮點數,範圍在-100到100之間。

輸出規範

一個整數。

範例輸入 #1

1.1 2.2 3.3

範例輸出 #1

2

範例輸入 #2

-1.123 -3.4 -5.6

範例輸出 #2

-3

Comments

There are no comments at the moment.