結果
問題 | No.178 美しいWhitespace (1) |
ユーザー |
![]() |
提出日時 | 2025-03-20 21:04:49 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 312 bytes |
コンパイル時間 | 145 ms |
コンパイル使用メモリ | 82,768 KB |
実行使用メモリ | 64,232 KB |
最終ジャッジ日時 | 2025-03-20 21:05:00 |
合計ジャッジ時間 | 2,026 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 18 MLE * 3 |
ソースコード
n = int(input())s_list = []for _ in range(n):a, b = map(int, input().split())s = a + 4 * bs_list.append(s)parities = {s % 2 for s in s_list}if len(parities) != 1:print(-1)else:max_s = max(s_list)total = 0for s in s_list:total += (max_s - s) // 2print(total)