結果
問題 |
No.185 和風
|
ユーザー |
|
提出日時 | 2021-06-03 19:45:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 400 bytes |
コンパイル時間 | 392 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-11-17 06:45:14 |
合計ジャッジ時間 | 1,151 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 1 |
ソースコード
N = int(input()) xy = [map(int, input().split()) for i in range(N)] x, y = [list(i) for i in zip(*xy)] res = -1 for i in range(N): square = y[i] - x[i] if i == 0: sq_ = square pass else: if square != sq_: res = -1 break else: res = square if res < 0: res = -1 break print(res)