結果
| 問題 |
No.178 美しいWhitespace (1)
|
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2016-04-13 21:27:37 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 2,000 ms |
| コード長 | 151 bytes |
| コンパイル時間 | 267 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-04 07:52:08 |
| 合計ジャッジ時間 | 1,575 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 21 |
ソースコード
n=input() c=[i[0]+i[1]*4 for i in[map(int,raw_input().split())for i in range(n)]] m=max(c) d=[m-i for i in c] print[sum(d)/2,-1][sum(i&1 for i in d)>0]
taba