結果
問題 | No.1057 素敵な日 |
ユーザー |
![]() |
提出日時 | 2020-06-05 00:05:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 359 bytes |
コンパイル時間 | 1,708 ms |
コンパイル使用メモリ | 165,260 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 18:23:43 |
合計ジャッジ時間 | 2,040 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
ソースコード
#include <bits/stdc++.h>#define rep(i, j) for (int i = 0; i < (int)(j); ++i)#define rep1(i, j) for (int i = 1; i < (int)(j); ++i)#define all(v) (v).begin(), (v).end()using namespace std;using ll = long long;using ld = long double;signed main(){int a, b; cin >> a >> b;if (a == b) cout << a*2-1 << endl;else cout << min(a, b) * 2 << endl;}