結果
| 問題 | No.185 和風 |
| コンテスト | |
| ユーザー |
turner18_jp
|
| 提出日時 | 2017-10-01 21:16:42 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 23 ms / 1,000 ms |
| + 990µs | |
| コード長 | 276 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-11 07:55:07 |
| 合計ジャッジ時間 | 1,334 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
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