結果
問題 | No.185 和風 |
ユーザー | ddsyg1 |
提出日時 | 2019-01-15 16:15:21 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 152 bytes |
コンパイル時間 | 270 ms |
コンパイル使用メモリ | 87,016 KB |
実行使用メモリ | 75,344 KB |
最終ジャッジ日時 | 2023-09-07 08:26:48 |
合計ジャッジ時間 | 1,553 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
71,032 KB |
testcase_01 | AC | 85 ms
75,344 KB |
testcase_02 | AC | 83 ms
75,340 KB |
testcase_03 | AC | 82 ms
75,304 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 84 ms
75,264 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] == x[N-1]): print(x[0]) else: print(-1)