結果
| 問題 |
No.2239 Friday
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-17 14:43:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 331 bytes |
| コンパイル時間 | 172 ms |
| コンパイル使用メモリ | 82,040 KB |
| 実行使用メモリ | 53,508 KB |
| 最終ジャッジ日時 | 2025-11-17 14:43:11 |
| 合計ジャッジ時間 | 1,808 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 WA * 4 |
ソースコード
A, B = map(int, input().split())
if A==B:
print(0)
elif (A+B)%2==0:
if 2*min(A,B)>=(A+B)//2:
print(0)
else:
diff = abs(4 * min(A, B) - (A + B))
print(diff)
else:
if 2*min(A,B)>=(A+B-1)//2:
print(0)
else:
diff = abs(4 * min(A, B) - (A + B))
print(diff)