結果
| 問題 |
No.178 美しいWhitespace (1)
|
| コンテスト | |
| ユーザー |
brthyyjp
|
| 提出日時 | 2020-10-24 20:27:25 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 245 bytes |
| コンパイル時間 | 156 ms |
| コンパイル使用メモリ | 82,376 KB |
| 実行使用メモリ | 64,088 KB |
| 最終ジャッジ日時 | 2024-07-21 15:36:31 |
| 合計ジャッジ時間 | 2,277 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 MLE * 2 |
ソースコード
n = int(input())
T = []
for i in range(n):
a,b = map(int, input().split())
T.append(a+b*4)
T.sort(reverse=True)
ans = 0
for t in T:
if (T[0]-t)%2 != 0:
print(-1)
exit()
else:
ans += (T[0]-t)//2
print(ans)
brthyyjp