結果
| 問題 | No.185 和風 |
| コンテスト | |
| ユーザー |
turner18_jp
|
| 提出日時 | 2017-10-01 21:16:07 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 277 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-09-23 16:53:44 |
| 合計ジャッジ時間 | 1,341 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 1 |
ソースコード
n = int(input())
li = []
judge = True
for i in range(n):
f, s = (int(i) for i in input().split())
li.append(s - f)
for i in range(len(li)):
if not li[i] == li[0] or li[i] <= 1:
judge = False
break
if judge:
print(li[0])
else:
print('-1')
turner18_jp