結果
| 問題 |
No.191 供託金
|
| コンテスト | |
| ユーザー |
knt3110
|
| 提出日時 | 2018-05-22 15:05:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 5,000 ms |
| コード長 | 199 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-28 15:44:49 |
| 合計ジャッジ時間 | 1,777 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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