結果

問題 No.143 豆
ユーザー yuppe19 😺yuppe19 😺
提出日時 2015-04-18 05:12:23
言語 Python2
(2.7.18)
結果
AC  
実行時間 16 ms / 1,000 ms
コード長 149 bytes
コンパイル時間 123 ms
コンパイル使用メモリ 6,524 KB
実行使用メモリ 5,996 KB
最終ジャッジ日時 2023-09-30 16:32:56
合計ジャッジ時間 1,423 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
5,868 KB
testcase_01 AC 14 ms
5,868 KB
testcase_02 AC 13 ms
5,940 KB
testcase_03 AC 14 ms
5,972 KB
testcase_04 AC 14 ms
5,932 KB
testcase_05 AC 14 ms
5,972 KB
testcase_06 AC 14 ms
5,864 KB
testcase_07 AC 14 ms
5,852 KB
testcase_08 AC 15 ms
5,948 KB
testcase_09 AC 13 ms
5,868 KB
testcase_10 AC 12 ms
5,916 KB
testcase_11 AC 13 ms
5,868 KB
testcase_12 AC 12 ms
5,996 KB
testcase_13 AC 13 ms
5,872 KB
testcase_14 AC 16 ms
5,968 KB
testcase_15 AC 13 ms
5,968 KB
testcase_16 AC 15 ms
5,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
K, N, _ = map(int, raw_input().split())
summa = sum(map(int, raw_input().split()))
res = K * N - summa
print -1 if res < 0 else res
0