結果
問題 |
No.143 豆
|
ユーザー |
|
提出日時 | 2024-02-25 12:19:17 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 182 bytes |
コンパイル時間 | 187 ms |
コンパイル使用メモリ | 81,892 KB |
実行使用メモリ | 53,852 KB |
最終ジャッジ日時 | 2024-09-29 10:53:11 |
合計ジャッジ時間 | 1,508 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 6 |
ソースコード
K,N,F=map(int,input().split()) family_list=list(map(int,input().split())) amount=K*N for i in range(0,F): amount-=int(family_list[i]) if amount<0: print(-1) break print(amount)