結果

問題 No.2410 Nine Numbers
ユーザー PAKACHUPAKACHU
提出日時 2023-08-11 22:25:21
言語 C++17(clang)
(17.0.6 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 527 bytes
コンパイル時間 2,647 ms
コンパイル使用メモリ 161,748 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-04-29 13:26:34
合計ジャッジ時間 2,979 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long ull;
typedef long double ld;
int dx[8] = { 1, 0, -1, 0, 1, 1, -1, -1 }, dy[8] = { 0, 1, 0, -1, 1, -1, 1, -1 };
const long long mod = 998244353;
const ll inf = 1LL << 60;
const int INF = 5e8;

int main()
{
    vector<int> a;
    a.push_back(1);
    int s = 1;
    while (a.size() < 9) {
        a.push_back(2 * s + 1);
        s += 2 * s + 1;
    }
    for (int i = 0; i < 9; i++)
        cout << a[i] << ' ';
    cout << endl;
}
0