結果

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

ソースコード

diff #

S = [l(*input().split()) for i in range(int(input())) for l in [lambda a, b: int(a) + 4 * int(b)]]
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