結果

問題 No.333 門松列を数え上げ
ユーザー mlihua09mlihua09
提出日時 2020-08-28 10:43:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 114 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 82,332 KB
実行使用メモリ 53,212 KB
最終ジャッジ日時 2024-04-26 10:33:52
合計ジャッジ時間 1,236 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
52,868 KB
testcase_01 AC 39 ms
52,536 KB
testcase_02 AC 39 ms
53,212 KB
testcase_03 AC 40 ms
52,640 KB
testcase_04 AC 41 ms
52,004 KB
testcase_05 AC 38 ms
52,008 KB
testcase_06 AC 39 ms
52,356 KB
testcase_07 AC 38 ms
51,944 KB
testcase_08 AC 40 ms
52,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


A, B = map(int, input().split())

if A > B:
    
    print(2 * 10 ** 9 - B - 1)
    
else:
    
    print(B - 2)
0