結果
問題 |
No.185 和風
|
ユーザー |
![]() |
提出日時 | 2015-10-07 13:42:46 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 197 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-07-20 01:52:15 |
合計ジャッジ時間 | 911 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 7 |
ソースコード
N = int(input()) x, y = int(input()) ans = y - x for i in range(N - 1): x, y = int(input()) if y - x != ans: print(-1) exit() if ans > 0: print(ans) else: print(-1)