結果
| 問題 | No.185 和風 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-02-24 19:04:53 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 349 bytes |
| 記録 | |
| コンパイル時間 | 604 ms |
| コンパイル使用メモリ | 20,912 KB |
| 実行使用メモリ | 20,740 KB |
| 最終ジャッジ日時 | 2026-02-24 19:04:57 |
| 合計ジャッジ時間 | 4,204 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 7 |
ソースコード
for i in range(N):
x, y = input().split()
x, y = int(x), int(y)
difference = y - x
if i == 0:
saved_difference = difference
else:
if saved_difference != difference:
difference = -1
break
else:
pass
if difference <= 0:
print(difference)
else:
print(difference)