結果
問題 |
No.1057 素敵な日
|
ユーザー |
![]() |
提出日時 | 2022-08-01 10:30:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 250 bytes |
コンパイル時間 | 535 ms |
コンパイル使用メモリ | 73,112 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-21 22:54:16 |
合計ジャッジ時間 | 1,034 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
ソースコード
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<map> using namespace std; int main() { int a,b,ans; cin >> a >> b; if(a==b) ans = min(a, b)*2-1; else ans = min(a, b) * 2 ; cout <<ans<< endl; return 0; }