結果
| 問題 | No.1860 Magnets |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-04 21:42:04 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 74 ms / 2,000 ms |
| + 80µs | |
| コード長 | 165 bytes |
| 記録 | |
| コンパイル時間 | 245 ms |
| コンパイル使用メモリ | 95,988 KB |
| 実行使用メモリ | 79,360 KB |
| 最終ジャッジ日時 | 2026-08-17 15:50:22 |
| 合計ジャッジ時間 | 4,272 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)