結果
| 問題 | No.185 和風 |
| コンテスト | |
| ユーザー |
Rute
|
| 提出日時 | 2020-03-04 22:21:31 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 354 bytes |
| 記録 | |
| コンパイル時間 | 346 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-05-01 11:08:41 |
| 合計ジャッジ時間 | 1,862 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 1 |
ソースコード
N = int(input())
now = 0
flag = 0
for i in range(N):
x,y = map(int,input().split())
S = y-x
if S<0:
print(-1)
flag += 1
break
else:
if i == 0:
now = y-x
else:
if S != now:
print(-1)
flag += 1
break
if flag == 0:
print(now)
Rute