結果

問題 No.333 門松列を数え上げ
ユーザー HachimoriHachimori
提出日時 2016-03-06 12:05:05
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 7,120 KB
実行使用メモリ 6,464 KB
最終ジャッジ日時 2023-10-24 20:05:47
合計ジャッジ時間 757 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#!/usr/bin/env python
#coding:utf8

def read():
    return map(int, raw_input().split())


def work((A, B)):
    if A < B:
        print A - 1
    else:
        print 2000000000 - A


if __name__ == "__main__":
    work(read())
0