結果
| 問題 |
No.1860 Magnets
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-04 21:42:04 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 2,000 ms |
| コード長 | 165 bytes |
| コンパイル時間 | 162 ms |
| コンパイル使用メモリ | 82,152 KB |
| 実行使用メモリ | 53,888 KB |
| 最終ジャッジ日時 | 2024-07-18 19:47:35 |
| 合計ジャッジ時間 | 2,346 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 |
ソースコード
import sys
input = sys.stdin.readline
from collections import *
A, B = map(int, input().split())
if A==B:
print(A+B)
else:
print(A+B+max(A, B)-min(A, B)-1)