結果

問題 No.185 和風
ユーザー TawaraTawara
提出日時 2015-08-28 13:10:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 14 ms / 1,000 ms
コード長 142 bytes
コンパイル時間 491 ms
コンパイル使用メモリ 6,656 KB
実行使用メモリ 6,232 KB
最終ジャッジ日時 2023-09-25 19:01:46
合計ジャッジ時間 1,197 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,976 KB
testcase_01 AC 14 ms
6,004 KB
testcase_02 AC 13 ms
6,080 KB
testcase_03 AC 14 ms
6,076 KB
testcase_04 AC 13 ms
6,232 KB
testcase_05 AC 11 ms
6,048 KB
testcase_06 AC 14 ms
6,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
f = lambda x: int(x[1])-int(x[0])
a = [f(raw_input().split()) for i in range(N)]
print -1 if len(set(a)) > 1 or a[0] < 1 else a[0]
0