結果

問題 No.178 美しいWhitespace (1)
ユーザー n_knuun_knuu
提出日時 2015-05-13 17:29:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 10,508 KB
実行使用メモリ 8,352 KB
最終ジャッジ日時 2023-09-20 07:34:37
合計ジャッジ時間 2,200 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,788 KB
testcase_01 AC 16 ms
7,776 KB
testcase_02 AC 15 ms
7,752 KB
testcase_03 AC 16 ms
7,788 KB
testcase_04 AC 38 ms
8,152 KB
testcase_05 AC 38 ms
8,324 KB
testcase_06 AC 38 ms
8,188 KB
testcase_07 AC 19 ms
8,280 KB
testcase_08 AC 38 ms
8,192 KB
testcase_09 AC 38 ms
8,148 KB
testcase_10 AC 39 ms
8,268 KB
testcase_11 AC 19 ms
8,324 KB
testcase_12 AC 19 ms
8,228 KB
testcase_13 AC 38 ms
8,152 KB
testcase_14 AC 38 ms
8,232 KB
testcase_15 AC 38 ms
8,156 KB
testcase_16 AC 38 ms
8,332 KB
testcase_17 AC 38 ms
8,232 KB
testcase_18 AC 19 ms
8,352 KB
testcase_19 AC 38 ms
8,312 KB
testcase_20 AC 18 ms
8,232 KB
testcase_21 AC 38 ms
8,320 KB
testcase_22 AC 37 ms
8,240 KB
testcase_23 AC 38 ms
8,260 KB
testcase_24 AC 19 ms
8,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

source = [list(map(int, input().split())) for _ in range(int(input()))]
s = [a + 4*b for a, b in source]
print(-1 if 0 < len(list(filter(lambda x: x % 2 == 0, s))) < len(s) else sum((max(s)-si)//2 for si in s))
0