結果
問題 |
No.143 豆
|
ユーザー |
![]() |
提出日時 | 2018-09-13 13:43:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 298 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-01 04:22:13 |
合計ジャッジ時間 | 1,434 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 1 |
ソースコード
def main(): k,n,f = map(int,input().split()) li = list(map(int,input().split())) mame_total = k*n nenrei_total = 0 for i in range(len(li)): nenrei_total += li[i] i += 1 if(mame_total>nenrei_total): print(mame_total - nenrei_total) else: print(-1) if __name__ == '__main__': main()