結果

問題 No.2239 Friday
ユーザー H20
提出日時 2023-03-10 22:41:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 189 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 82,292 KB
実行使用メモリ 53,656 KB
最終ジャッジ日時 2024-09-18 04:49:25
合計ジャッジ時間 1,460 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B = map(int, input().split())
A,B = max(A,B),min(A,B)
same = A-B
not_same = A+B-same
for i in range(B):
    if same<not_same:
        same+=1
        not_same-=1
print(abs(same-not_same))
0