結果
| 問題 | No.185 和風 |
| コンテスト | |
| ユーザー |
lllllll88938494
|
| 提出日時 | 2023-05-30 20:33:01 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 34 ms / 1,000 ms |
| + 825µs | |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 80,876 KB |
| 実行使用メモリ | 64,000 KB |
| 最終ジャッジ日時 | 2026-10-11 08:29:17 |
| 合計ジャッジ時間 | 1,506 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
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