結果
| 問題 | No.178 美しいWhitespace (1) |
| コンテスト | |
| ユーザー |
あかりき
|
| 提出日時 | 2021-02-12 12:21:02 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 259 bytes |
| 記録 | |
| コンパイル時間 | 382 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 64,000 KB |
| 最終ジャッジ日時 | 2024-07-19 06:32:02 |
| 合計ジャッジ時間 | 2,736 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 18 MLE * 3 |
ソースコード
n=int(input()) l=[list(map(int,input().split())) for i in range(n)] L1=[] L2=[] for i in range(n): L1.append(l[i][0]+4*l[i][1]) L2.append(l[i][0]%2) if len(set(L2))!=1: print(-1) exit() m=max(L1) ans=0 for i in range(n): ans+=(m-L1[i])//2 print(ans)
あかりき