結果

問題 No.2140 Triangle
コンテスト
ユーザー nyst
提出日時 2022-12-02 22:17:28
言語 C++17
(gcc 15.2.0 + boost 1.89.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 353 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 804 ms
コンパイル使用メモリ 103,292 KB
最終ジャッジ日時 2025-02-09 03:54:50
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <vector>
#include <iomanip>
#include <algorithm>
#include <map>
#include <cmath>
#include <bitset>
#include <string>
#include <queue>
#include <stack>
#include <set>
#include <tuple>
// #include <atcoder/all>
// using namespace atcoder;

using namespace std;

int main() {
    int a;cin >> a;
    cout << 2*a - 1 << endl;
}
0