結果

問題 No.333 門松列を数え上げ
ユーザー r_yo6021
提出日時 2016-09-13 21:13:47
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 146 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-11-17 04:58:55
合計ジャッジ時間 962 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 3 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = list(map(int, input().split()))
Nmax = 2000000000
if B == max(A, B):
    print(max(B - A, A - 1))
else:
    print(max(A - B - 1, Nmax - A))
0