結果

問題 No.143 豆
ユーザー SaiPydaSaiPyda
提出日時 2017-12-25 10:08:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 188 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 8,700 KB
最終ジャッジ日時 2023-08-22 18:48:38
合計ジャッジ時間 1,333 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,644 KB
testcase_01 AC 20 ms
8,508 KB
testcase_02 AC 20 ms
8,576 KB
testcase_03 AC 19 ms
8,528 KB
testcase_04 AC 20 ms
8,584 KB
testcase_05 AC 19 ms
8,528 KB
testcase_06 AC 19 ms
8,692 KB
testcase_07 AC 19 ms
8,496 KB
testcase_08 AC 20 ms
8,688 KB
testcase_09 WA -
testcase_10 AC 19 ms
8,644 KB
testcase_11 AC 20 ms
8,524 KB
testcase_12 AC 20 ms
8,644 KB
testcase_13 AC 19 ms
8,648 KB
testcase_14 AC 20 ms
8,584 KB
testcase_15 AC 20 ms
8,696 KB
testcase_16 AC 20 ms
8,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import functools
from operator import add
K, N, F = [int(i) for i in input().split()]
D = functools.reduce(add, [int(i) for i in input().split()])
print(K*N-D) if K*N-D > 0 else print(-1)
0