結果
問題 |
No.198 キャンディー・ボックス2
|
ユーザー |
|
提出日時 | 2015-04-28 23:49:04 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 183 bytes |
コンパイル時間 | 55 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-05 05:09:21 |
合計ジャッジ時間 | 1,245 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 21 WA * 5 |
ソースコード
B = int(raw_input()) N = int(raw_input()) C = [int(raw_input()) for i in xrange(N)] ans = 10**18 for c in C: ans = min(ans, sum(abs(C[i] - c) for i in xrange(N))) print ans