結果

問題 No.143 豆
ユーザー alcoholampalcoholamp
提出日時 2019-10-29 20:25:18
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 7,932 KB
最終ジャッジ日時 2023-10-12 23:30:06
合計ジャッジ時間 1,404 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,824 KB
testcase_01 AC 17 ms
7,836 KB
testcase_02 AC 16 ms
7,876 KB
testcase_03 AC 15 ms
7,812 KB
testcase_04 AC 15 ms
7,924 KB
testcase_05 AC 15 ms
7,744 KB
testcase_06 AC 15 ms
7,880 KB
testcase_07 AC 15 ms
7,840 KB
testcase_08 AC 15 ms
7,852 KB
testcase_09 WA -
testcase_10 AC 16 ms
7,828 KB
testcase_11 AC 16 ms
7,768 KB
testcase_12 AC 16 ms
7,828 KB
testcase_13 AC 16 ms
7,788 KB
testcase_14 AC 16 ms
7,840 KB
testcase_15 AC 16 ms
7,796 KB
testcase_16 AC 16 ms
7,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

class Problem0143:
	def solve(this):
		k,n,f = map(int, input().split())
		a = list(map(int, input().split()))
		
		res = k*n - sum(a) 
		if res > 0:
			print(res)
		else:
			print(-1)
			
if __name__ =="__main__":
	problem = Problem0143()
	problem.solve()
0