結果

問題 No.2239 Friday
ユーザー GrayCoderGrayCoder
提出日時 2023-03-10 22:35:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 323 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 11,828 KB
実行使用メモリ 9,992 KB
最終ジャッジ日時 2023-10-18 08:17:05
合計ジャッジ時間 1,848 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,992 KB
testcase_01 AC 30 ms
9,992 KB
testcase_02 AC 29 ms
9,992 KB
testcase_03 AC 30 ms
9,992 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 29 ms
9,992 KB
testcase_07 AC 29 ms
9,992 KB
testcase_08 AC 28 ms
9,992 KB
testcase_09 AC 29 ms
9,992 KB
testcase_10 AC 29 ms
9,992 KB
testcase_11 AC 30 ms
9,992 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 30 ms
9,992 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 29 ms
9,992 KB
testcase_18 WA -
testcase_19 AC 29 ms
9,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


def main():
    sys.setrecursionlimit(1000000)
    input = lambda: sys.stdin.readline()[:-1]
    A, B = map(int, input().split())

    good = min(A, B) * 2
    bad = A + B - good
    print(abs(good - bad) if bad else (good % 2) * 2)


if not __debug__:
    f = open(sys.argv[1], "r")
    sys.stdin = f

main()
0