結果

問題 No.333 門松列を数え上げ
ユーザー mkawa2mkawa2
提出日時 2019-12-30 17:18:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 542 ms / 2,000 ms
コード長 898 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 12,928 KB
実行使用メモリ 44,592 KB
最終ジャッジ日時 2024-04-26 07:09:07
合計ジャッジ時間 7,265 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 540 ms
44,592 KB
testcase_01 AC 531 ms
44,464 KB
testcase_02 AC 532 ms
44,464 KB
testcase_03 AC 527 ms
44,336 KB
testcase_04 AC 536 ms
44,208 KB
testcase_05 AC 530 ms
44,220 KB
testcase_06 AC 534 ms
44,476 KB
testcase_07 AC 542 ms
44,476 KB
testcase_08 AC 541 ms
44,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import *
from bisect import *
# from math import *
from collections import *
from heapq import *
from random import *
from decimal import *
import numpy as np
import sys
import copy

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def MI1(): return map(int1, sys.stdin.readline().split())
def MF(): return map(float, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LF(): return list(map(float, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
dij = [(1, 0), (0, 1), (-1, 0), (0, -1)]

def main():
    a,b=MI()
    if a<b:ans=b-2
    else:ans=2000000000-b-1
    print(ans)
main()
0