結果

問題 No.178 美しいWhitespace (1)
ユーザー Mario
提出日時 2018-06-02 22:02:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-30 09:08:49
合計ジャッジ時間 2,780 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

S = [(lambda a, b: int(a) + 4 * int(b))(*input().split()) for i in range(int(input()))]
print(sum([(max(S) - s) // 2 for s in S]) if all(True if (max(S) - s) % 2 == 0 else False for s in S) else -1)
0