結果

問題 No.143 豆
ユーザー 67oYG9nh2YMmIci67oYG9nh2YMmIci
提出日時 2020-06-25 17:18:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 142 ms / 1,000 ms
コード長 192 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 29,756 KB
最終ジャッジ日時 2023-09-30 17:51:53
合計ジャッジ時間 4,072 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
29,560 KB
testcase_01 AC 135 ms
29,616 KB
testcase_02 AC 138 ms
29,568 KB
testcase_03 AC 135 ms
29,580 KB
testcase_04 AC 136 ms
29,568 KB
testcase_05 AC 133 ms
29,576 KB
testcase_06 AC 139 ms
29,628 KB
testcase_07 AC 139 ms
29,640 KB
testcase_08 AC 138 ms
29,548 KB
testcase_09 AC 137 ms
29,692 KB
testcase_10 AC 135 ms
29,584 KB
testcase_11 AC 136 ms
29,756 KB
testcase_12 AC 136 ms
29,632 KB
testcase_13 AC 137 ms
29,676 KB
testcase_14 AC 140 ms
29,568 KB
testcase_15 AC 142 ms
29,636 KB
testcase_16 AC 139 ms
29,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
K,N,F = map(int, input().split())
A = [int(i) for i in input().split()]
mame_sum=K*N
fam_sum=np.sum(A)
if fam_sum<=mame_sum:
    print(mame_sum-fam_sum)
else:
    print(-1)
0