結果
| 問題 |
No.2239 Friday
|
| ユーザー |
H20
|
| 提出日時 | 2023-03-10 22:45:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 225 bytes |
| コンパイル時間 | 224 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2024-09-18 04:52:07 |
| 合計ジャッジ時間 | 2,013 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
A,B = map(int, input().split())
if A==B==1:
print(2)
exit()
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))
H20