結果

問題 No.1860 Magnets
ユーザー Isshii_AC
提出日時 2022-03-04 21:28:02
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 142 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 62,848 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 19:19:04
合計ジャッジ時間 1,151 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;
int main(){
    int n,m;cin >> n >> m;
    int d=min(n,m);
    cout << d*2+(max(m,n)-d)*2-1 << endl;
}
0