結果
問題 | No.185 和風 |
ユーザー | ddsyg1 |
提出日時 | 2019-01-15 16:24:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 79 ms / 1,000 ms |
コード長 | 184 bytes |
コンパイル時間 | 223 ms |
コンパイル使用メモリ | 86,820 KB |
実行使用メモリ | 75,416 KB |
最終ジャッジ日時 | 2023-09-07 08:49:55 |
合計ジャッジ時間 | 1,369 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
71,244 KB |
testcase_01 | AC | 79 ms
75,272 KB |
testcase_02 | AC | 72 ms
75,056 KB |
testcase_03 | AC | 71 ms
75,416 KB |
testcase_04 | AC | 71 ms
75,088 KB |
testcase_05 | AC | 61 ms
71,276 KB |
testcase_06 | AC | 70 ms
75,228 KB |
ソースコード
N = int(input()) x = [] for i in range(N): a, b = map(int, input().split()) x.append(b - a) x.sort() if(x[0] <= 0): print("-1") elif(x[0] == x[N-1]): print(x[0]) else: print("-1")