結果

問題 No.185 和風
ユーザー k0825k0825
提出日時 2019-04-06 15:09:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 1,000 ms
コード長 143 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2023-09-06 04:19:04
合計ジャッジ時間 849 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,804 KB
testcase_01 AC 18 ms
7,768 KB
testcase_02 AC 18 ms
7,796 KB
testcase_03 AC 18 ms
7,824 KB
testcase_04 AC 18 ms
7,764 KB
testcase_05 AC 15 ms
7,768 KB
testcase_06 AC 18 ms
7,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t=[]
for _ in '1'*int(input()):
	x, y = map(int,input().split())
	t.append(y-x if y-x>0 else -1)
print(max(t[0], -1) if len(set(t))==1 else -1)
0