結果
| 問題 |
No.185 和風
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-11-04 20:43:38 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 485 bytes |
| コンパイル時間 | 187 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-11-20 20:07:23 |
| 合計ジャッジ時間 | 898 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 2 |
ソースコード
if __name__ == '__main__':
numberList=[]
n=input()
n=int(n)
while n>0:
n-=1
xy=input()
x,y=xy.split(' ')
numberList.append(x)
numberList.append(y)
ans=int(numberList[1])-int(numberList[0])
if ans<0:
ans=-1
n=2
while len(numberList)>n:
difference=int(numberList[n+1])-int(numberList[n])
if ans!=difference:
ans=-1
break
else:
n*=2
print(ans)