結果
| 問題 |
No.143 豆
|
| ユーザー |
yoshi_k
|
| 提出日時 | 2017-09-18 21:39:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 1,000 ms |
| コード長 | 343 bytes |
| コンパイル時間 | 88 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-23 10:50:04 |
| 合計ジャッジ時間 | 1,252 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
try:
import mydebug
def dprint(*objects, sep='', end='\n'):
print(*objects, sep, end)
except:
def dprint(*objects, sep='', end='\n'): pass
k, n, f = [int(x) for x in input().split()]
a = [int(x) for x in input().split()]
total = k * n
family = sum(a)
if total >= family:
print(total - family)
else:
print("-1")
yoshi_k