結果
| 問題 | No.1860 Magnets |
| コンテスト | |
| ユーザー |
kai4096_don
|
| 提出日時 | 2022-03-04 21:25:19 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 347µs | |
| コード長 | 383 bytes |
| 記録 | |
| コンパイル時間 | 2,530 ms |
| コンパイル使用メモリ | 244,248 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-17 14:58:22 |
| 合計ジャッジ時間 | 4,632 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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