結果

問題 No.191 供託金
ユーザー knt3110
提出日時 2018-05-22 15:04:36
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 199 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-28 15:44:47
合計ジャッジ時間 1,701 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
c=[int(i) for i in input().split()]

sum=0
for i in c:
    sum+=i

cost=0
for i in c:
    if i/sum<=1/10 and sum!=0:
        cost+=30

if sum!=0:
    print(cost)
else:
    print(30*n)
0