結果

問題 No.2239 Friday
ユーザー ninja-kidninja-kid
提出日時 2023-03-11 07:38:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 352 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 53,464 KB
最終ジャッジ日時 2023-10-18 09:41:07
合計ジャッジ時間 1,722 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#!/usr/bin/env python3
dpos4 = ((1, 0), (0, 1), (-1, 0), (0, -1))
dpos8 = ((0, -1), (1, -1), (1, 0), (1, 1), (0, 1), (-1, 1), (-1, 0), (-1, -1))
mod1 = 10**9 + 7
mod2 = 998244353
inf = 1 << 60


def main():
    A, B = map(int, input().split())
    fu = min(A, B) * 2
    shi = A + B - fu
    print(abs(fu - shi))

if __name__ == "__main__":
    main()
0