結果
| 問題 | No.2239 Friday |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2023-03-10 22:45:19 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 67 ms / 2,000 ms |
| + 36µs | |
| コード長 | 225 bytes |
| 記録 | |
| コンパイル時間 | 264 ms |
| コンパイル使用メモリ | 95,852 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2026-08-30 00:46:18 |
| 合計ジャッジ時間 | 3,135 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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