結果
| 問題 |
No.1860 Magnets
|
| コンテスト | |
| ユーザー |
kai4096_don
|
| 提出日時 | 2022-03-04 21:25:19 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 383 bytes |
| コンパイル時間 | 3,656 ms |
| コンパイル使用メモリ | 228,536 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-18 19:06:50 |
| 合計ジャッジ時間 | 4,682 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
//const long nPrime = 1000000007;
//const long nPrime = 998244353;
typedef long long ll;
int main() {
long a,b;
cin >> a >> b;
if(a<b){
swap(a,b);
}
if(a==b){
cout << 2*a <<endl;
} else {
cout << 2*a-1 << endl;
}
return 0;
}
kai4096_don