結果

問題 No.191 供託金
ユーザー lam6er
提出日時 2025-03-20 18:40:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 243 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 82,164 KB
実行使用メモリ 53,632 KB
最終ジャッジ日時 2025-03-20 18:40:49
合計ジャッジ時間 2,220 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0