結果

問題 No.333 門松列を数え上げ
ユーザー ShirotsumeShirotsume
提出日時 2022-12-09 01:33:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 415 bytes
コンパイル時間 338 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 54,144 KB
最終ジャッジ日時 2024-04-22 18:55:47
合計ジャッジ時間 1,288 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
54,144 KB
testcase_01 AC 43 ms
53,504 KB
testcase_02 AC 43 ms
53,760 KB
testcase_03 AC 43 ms
53,504 KB
testcase_04 AC 42 ms
53,632 KB
testcase_05 AC 44 ms
53,632 KB
testcase_06 AC 42 ms
53,760 KB
testcase_07 AC 47 ms
53,504 KB
testcase_08 AC 42 ms
53,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
import sys
from collections import deque, Counter
sys.setrecursionlimit(5 * 10 ** 5)
from pypyjit import set_param
set_param('max_unroll_recursion=-1')
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353

a,b = mi()

if a < b:
    print(b - 2)
else:
    print(2 * 10 ** 9 - b - 1)
0