結果
| 問題 | 
                            No.178 美しいWhitespace (1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-10-04 16:19:33 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 35 ms / 2,000 ms | 
| コード長 | 229 bytes | 
| コンパイル時間 | 92 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-10-12 12:17:03 | 
| 合計ジャッジ時間 | 2,105 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 21 | 
ソースコード
n=int(input()) l=[] l=[list(map(int,input().split())) for _ in range(n)] *m,=map(lambda x:x[0]+4*x[1],l) *a,=map(lambda x:x%2,m) if not (all(a) or not any(a)): print(-1) else: b=max(m) print(sum(map(lambda x:(b-x)//2,m)))