結果
問題 |
No.185 和風
|
ユーザー |
![]() |
提出日時 | 2021-10-26 13:16:05 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 82,540 KB |
実行使用メモリ | 62,580 KB |
最終ジャッジ日時 | 2024-10-05 07:20:43 |
合計ジャッジ時間 | 1,009 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 1 |
ソースコード
n = int(input()) a,b = map(int,input().split()) ans = b-a if ans < 0: print(-1) else: for i in range(n-1): a,b = map(int,input().split()) if ans != b-a: ans = -1 break print(ans)