結果

問題 No.2410 Nine Numbers
ユーザー polylogKpolylogK
提出日時 2023-08-11 21:55:00
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 719 bytes
コンパイル時間 2,006 ms
コンパイル使用メモリ 199,012 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-04-29 12:49:54
合計ジャッジ時間 2,411 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std::literals::string_literals;
using i64 = std::int_fast64_t;
using std::cerr;
using std::cin;
using std::cout;
using std::endl;

#if defined(DONLINE_JUDGE)
#define NDEBUG
#elif defined(ONLINE_JUDGE)
#define NDEBUG
#endif

template <typename T>
std::vector<T> make_v(size_t a) {
    return std::vector<T>(a);
}
template <typename T, typename... Ts>
auto make_v(size_t a, Ts... ts) {
    return std::vector<decltype(make_v<T>(ts...))>(a, make_v<T>(ts...));
}

int main() {
    int now = 0;
    for (int i = 0; i < 9; ++i) {
        printf("%d", 2 * now + 1);
        now = std::min(9000, 3 * now + 1);

        if (i < 8) putchar(' ');
    }
    putchar('\n');

    return 0;
}
0