結果
問題 | No.143 豆 |
ユーザー |
|
提出日時 | 2024-02-25 12:24:29 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 1,000 ms |
コード長 | 174 bytes |
コンパイル時間 | 205 ms |
コンパイル使用メモリ | 82,396 KB |
実行使用メモリ | 54,228 KB |
最終ジャッジ日時 | 2024-09-29 10:53:14 |
合計ジャッジ時間 | 1,477 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 |
ソースコード
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: amount=-1 print(amount)