結果

問題 No.1057 素敵な日
ユーザー RyumaRyama
提出日時 2020-06-20 15:44:39
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 885 ms
コンパイル使用メモリ 127,480 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-30 18:40:38
合計ジャッジ時間 1,420 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <utility>
#include <algorithm>

using namespace std;

int main() {
    int a, b;
    cin >> a >> b;
    if (a < b) swap(a, b);
    cout << b + min(b, a-1) << endl;
}
0