結果
| 問題 | No.1861 Required Number |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-04 22:10:03 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 110 bytes |
| 記録 | |
| コンパイル時間 | 168 ms |
| コンパイル使用メモリ | 84,576 KB |
| 実行使用メモリ | 53,972 KB |
| 最終ジャッジ日時 | 2026-04-02 12:52:56 |
| 合計ジャッジ時間 | 4,053 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 46 |
ソースコード
A,B = map(int,input().split())
if A == B:
print(2 * A)
else:
ans = max(2*max(A,B) -1,0)
print(ans)