結果
問題 | No.185 和風 |
ユーザー | gorugo30 |
提出日時 | 2021-02-22 23:05:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 53 ms / 1,000 ms |
コード長 | 223 bytes |
コンパイル時間 | 148 ms |
コンパイル使用メモリ | 81,836 KB |
実行使用メモリ | 61,080 KB |
最終ジャッジ日時 | 2023-10-21 17:14:04 |
合計ジャッジ時間 | 968 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 42 ms
53,492 KB |
testcase_01 | AC | 53 ms
61,080 KB |
testcase_02 | AC | 36 ms
53,492 KB |
testcase_03 | AC | 37 ms
53,492 KB |
testcase_04 | AC | 37 ms
53,492 KB |
testcase_05 | AC | 38 ms
53,492 KB |
testcase_06 | AC | 51 ms
61,080 KB |
ソースコード
N = int(input()) x, y = map(int, input().split()) ans = y - x if ans <= 0: print(-1) exit() for i in range(1, N): x, y = map(int, input().split()) if ans != y - x: print(-1) exit() print(ans)