結果

問題 No.333 門松列を数え上げ
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-07-02 20:06:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 225 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 73,088 KB
最終ジャッジ日時 2023-09-23 16:03:25
合計ジャッジ時間 2,164 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
72,692 KB
testcase_01 AC 108 ms
72,728 KB
testcase_02 AC 112 ms
72,920 KB
testcase_03 AC 108 ms
72,876 KB
testcase_04 AC 110 ms
72,720 KB
testcase_05 AC 109 ms
72,728 KB
testcase_06 AC 106 ms
72,912 KB
testcase_07 AC 107 ms
73,088 KB
testcase_08 AC 108 ms
73,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
# input = sys.stdin.readline

A,B = map(int,input().split())
if A<B:
    print(B-2)
else:
    print(2000000000-B-1)
0