結果
| 問題 | No.2410 Nine Numbers | 
| コンテスト | |
| ユーザー |  tnakao0123 | 
| 提出日時 | 2023-08-14 15:57:09 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 2,000 ms | 
| コード長 | 434 bytes | 
| コンパイル時間 | 322 ms | 
| コンパイル使用メモリ | 41,032 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-22 14:27:09 | 
| 合計ジャッジ時間 | 858 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
ソースコード
/* -*- coding: utf-8 -*-
 *
 * 2410.cc:  No.2410 Nine Numbers - yukicoder
 */
#include<cstdio>
#include<algorithm>
 
using namespace std;
/* constant */
const int N = 9;
/* typedef */
/* global variables */
int as[N];
/* subroutines */
/* main */
int main() {
  as[0] = 1;
  for (int i = 1; i < N; i++) as[i] = as[i - 1] * 3;
  for (int i = 0; i < N; i++)
    printf("%d%c", as[i], (i + 1 < N) ? ' ' : '\n');
  return 0;
}
            
            
            
        