結果

問題 No.333 門松列を数え上げ
ユーザー Tadaaki
提出日時 2016-02-03 16:42:49
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-09-21 20:08:25
合計ジャッジ時間 706 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#KADOMATSU

# coding: utf-8

s=[]
s=map(int,raw_input().split())

A=int(s[0])
B=int(s[1])

if A>B:
 print 2*10**9-B-1
else: #A<B
 print B-2
0