結果

問題 No.2140 Triangle
ユーザー zawakasu
提出日時 2022-12-02 21:25:55
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 619 bytes
コンパイル時間 1,630 ms
コンパイル使用メモリ 192,820 KB
最終ジャッジ日時 2025-02-09 03:24:22
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define all(x) begin(x), end(x)
using namespace std;
using i32 = int;
using i64 = long long;
using ld = long double;
using usize = size_t;
template <typename T1, typename T2>
inline bool chmax(T1 &a, T2 b) {return a < b and (a = b, true);}
template <typename T1, typename T2>
inline bool chmin(T1 &a, T2 b) {return a > b and (a = b, true);}
const i64 supl = LONG_LONG_MAX / 2 - 100;
const i32 supi = INT_MAX / 2 - 100;

void main_() {
    i32 a; cin >> a;
    cout << 2 * a - 1 << endl;
}

int main() {
    ios::sync_with_stdio(false);
    std::cin.tie(nullptr);

    main_();

    return 0;
}
0