結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
tsuchinaga
|
| 提出日時 | 2019-02-20 14:54:51 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 336 bytes |
| コンパイル時間 | 15,214 ms |
| コンパイル使用メモリ | 239,804 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-06 21:14:50 |
| 合計ジャッジ時間 | 14,272 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
package main
import "fmt"
func main() {
var n, a float64
_, _ = fmt.Scan(&n)
total := 0.0
ballots := make([]float64, int(n))
for i := range ballots {
_, _ = fmt.Scan(&a)
total += a
ballots[i] = a
}
border := total / 10
cnt := 0
for _, n := range ballots {
if border >= n {
cnt++
}
}
fmt.Println(cnt * 30)
}
tsuchinaga