結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
knt3110
|
| 提出日時 | 2018-05-22 15:05:51 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 5,000 ms |
| コード長 | 199 bytes |
| 記録 | |
| コンパイル時間 | 379 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 15,484 KB |
| 最終ジャッジ日時 | 2026-03-17 13:43:30 |
| 合計ジャッジ時間 | 3,885 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
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 sum!=0 and i/sum<=1/10:
cost+=30
if sum!=0:
print(cost)
else:
print(30*n)
knt3110