結果
| 問題 |
No.2410 Nine Numbers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-11 21:55:00 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 719 bytes |
| コンパイル時間 | 1,747 ms |
| コンパイル使用メモリ | 190,812 KB |
| 最終ジャッジ日時 | 2025-02-16 01:20:09 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#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;
}