結果

問題 No.143 豆
ユーザー soupesuteakasoupesuteaka
提出日時 2016-03-03 17:10:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 27 ms / 1,000 ms
コード長 282 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 10,760 KB
実行使用メモリ 9,352 KB
最終ジャッジ日時 2023-09-30 16:42:49
合計ジャッジ時間 1,430 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
9,240 KB
testcase_01 AC 27 ms
9,280 KB
testcase_02 AC 26 ms
9,188 KB
testcase_03 AC 26 ms
9,288 KB
testcase_04 AC 26 ms
9,284 KB
testcase_05 AC 27 ms
9,352 KB
testcase_06 AC 26 ms
9,340 KB
testcase_07 AC 26 ms
9,240 KB
testcase_08 AC 27 ms
9,196 KB
testcase_09 AC 26 ms
9,280 KB
testcase_10 AC 27 ms
9,200 KB
testcase_11 AC 26 ms
9,340 KB
testcase_12 AC 26 ms
9,284 KB
testcase_13 AC 26 ms
9,352 KB
testcase_14 AC 26 ms
9,152 KB
testcase_15 AC 26 ms
9,240 KB
testcase_16 AC 26 ms
9,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: UTF-8

import sys
import re
import itertools
from math import log
from collections import deque

### defs ###


### main ###
K,N,F = map(int, sys.stdin.readline().split())
A = list(map(int,sys.stdin.readline().split()))

if (sum(A)>K*N):
	print(-1)
else:
	print(K*N-sum(A))
0