結果
| 問題 |
No.185 和風
|
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2016-11-11 00:23:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 1,000 ms |
| コード長 | 195 bytes |
| コンパイル時間 | 130 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-11-25 07:32:21 |
| 合計ジャッジ時間 | 1,018 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
N=int(input()) X,Y=[],[] for i in range(N):x,y=map(int,input().split());X.append(x);Y.append(y) s=Y[0]-X[0] if s<1:print(-1);exit() for i in range(1,N): if Y[i]-X[i]!=s:print(-1);exit() print(s)
compass19