結果

問題 No.333 門松列を数え上げ
ユーザー pluto77pluto77
提出日時 2016-02-03 16:54:11
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 7,056 KB
実行使用メモリ 6,388 KB
最終ジャッジ日時 2023-10-21 18:49:57
合計ジャッジ時間 753 ms
ジャッジサーバーID
(参考情報)
judge10 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,388 KB
testcase_01 AC 12 ms
6,388 KB
testcase_02 AC 11 ms
6,388 KB
testcase_03 AC 11 ms
6,388 KB
testcase_04 AC 11 ms
6,388 KB
testcase_05 AC 11 ms
6,388 KB
testcase_06 AC 11 ms
6,388 KB
testcase_07 AC 11 ms
6,388 KB
testcase_08 AC 11 ms
6,388 KB
権限があれば一括ダウンロードができます

ソースコード

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