結果
問題 | No.143 豆 |
ユーザー |
|
提出日時 | 2016-02-08 19:05:59 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 11 ms / 1,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 276 ms |
コンパイル使用メモリ | 7,076 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-23 10:26:14 |
合計ジャッジ時間 | 920 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 |
ソースコード
#coding: utf-8##yuki_143m=[]a=[]m=map(int,raw_input().split())a=map(int,raw_input().split())k=m[0]n=m[1]f=m[2]kn=k*nsum=0for i in xrange(len(a)):sum+=a[i]res=kn-sumif res<0:print -1else:print res