結果
問題 |
No.2239 Friday
|
ユーザー |
![]() |
提出日時 | 2023-03-10 21:44:22 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 2,000 ms |
コード長 | 319 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 82,316 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-09-18 04:00:38 |
合計ジャッジ時間 | 1,580 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
a, b = map(int, input().split()) match = min(a, b) * 2 unmatch = a + b - match if unmatch >= match: print(unmatch - match) else: ans = abs(match - unmatch) for _ in range(100): match -= 2 unmatch += 2 if match >= 0: ans = min(ans, abs(match - unmatch)) print(ans)