結果
問題 |
No.185 和風
|
ユーザー |
![]() |
提出日時 | 2020-04-09 18:01:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 219 bytes |
コンパイル時間 | 377 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-13 15:08:35 |
合計ジャッジ時間 | 922 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 3 |
ソースコード
n = int(input()) d = -1 for i in range(n): x, y = map(int, input().split()) if i == 0: d = y - x if d <= 0: break if d != y - x: print(-1) break else: print(d)