結果
問題 |
No.191 供託金
|
ユーザー |
![]() |
提出日時 | 2025-03-20 20:19:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 5,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 166 ms |
コンパイル使用メモリ | 82,412 KB |
実行使用メモリ | 53,372 KB |
最終ジャッジ日時 | 2025-03-20 20:20:22 |
合計ジャッジ時間 | 2,113 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
n = int(input()) c = list(map(int, input().split())) total = sum(c) if total == 0: print(n * 30) else: threshold = total / 10 count = 0 for votes in c: if votes <= threshold: count += 1 print(count * 30)