結果
| 問題 | No.1860 Magnets |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-04 21:42:04 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 165 bytes |
| 記録 | |
| コンパイル時間 | 116 ms |
| コンパイル使用メモリ | 85,280 KB |
| 実行使用メモリ | 139,824 KB |
| 最終ジャッジ日時 | 2026-04-02 12:18:00 |
| 合計ジャッジ時間 | 1,735 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)