結果
問題 |
No.185 和風
|
ユーザー |
|
提出日時 | 2018-06-01 13:15:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 1,000 ms |
コード長 | 240 bytes |
コンパイル時間 | 142 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-06-30 08:49:38 |
合計ジャッジ時間 | 881 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
N = int(input()) a, b = map(int, input().split()) c = b-a flg = 0 for i in range(N -1): a, b = map(int, input().split()) if c != b-a: flg = 1 break if flg == 1 or c <= 0: print("-1") else: print(c)