結果

問題 No.1057 素敵な日
ユーザー chacoder1
提出日時 2020-11-21 17:02:28
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 2,205 ms
コンパイル使用メモリ 190,672 KB
最終ジャッジ日時 2025-01-16 04:03:15
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
  int n,h;
  cin>>n>>h;  
  if(n==h){
    cout<<n+h-1<<endl;
    return 0;
  }
  cout<<min(n,h)*2<<endl;
  return 0;
}

0