結果

問題 No.143 豆
ユーザー Sttashe Egnm
提出日時 2024-02-25 12:17:09
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 159 bytes
コンパイル時間 259 ms
コンパイル使用メモリ 82,232 KB
実行使用メモリ 66,608 KB
最終ジャッジ日時 2024-09-29 10:53:07
合計ジャッジ時間 1,918 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 MLE * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

K,N,F=map(int,input().split())
family_list=input()
amount=K*N
for i in range(0,F):
	amount-=int(family_list[i])
	if amount<0:
		print(-1)
		break
print(amount)
0