結果
| 問題 | No.185 和風 |
| コンテスト | |
| ユーザー |
lllllll88938494
|
| 提出日時 | 2023-05-30 20:33:01 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 42 ms / 1,000 ms |
| + 36µs | |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 83 ms |
| コンパイル使用メモリ | 64,428 KB |
| 実行使用メモリ | 57,564 KB |
| 最終ジャッジ日時 | 2026-11-12 15:32:47 |
| 合計ジャッジ時間 | 1,728 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
n=int(input())
for i in range(n):
x,y = map(int,input().split())
if i == 0:
t = y-x
continue
if y-x != t:
print(-1)
exit()
t = y-x
if t < 1:
print(-1)
else:
print(t)
lllllll88938494