結果
問題 | No.185 和風 |
ユーザー |
![]() |
提出日時 | 2023-05-30 20:33:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 57 ms / 1,000 ms |
コード長 | 233 bytes |
コンパイル時間 | 458 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 61,440 KB |
最終ジャッジ日時 | 2024-12-28 12:56:49 |
合計ジャッジ時間 | 1,342 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
n=int(input())for i in range(n):x,y = map(int,input().split())if i == 0:t = y-xcontinueif y-x != t:print(-1)exit()t = y-xif t < 1:print(-1)else:print(t)