結果

問題 No.3159 Just Answer 10 Integers!
ユーザー twins_fuyu
提出日時 2025-05-23 20:44:16
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 501 bytes
コンパイル時間 1,870 ms
コンパイル使用メモリ 197,680 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-05-23 20:44:19
合計ジャッジ時間 3,357 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 2 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

using ll = long long;
using vl = vector<ll>;
using vvl = vector<vl>;
using ull = unsigned long long;

int N;

int main(){
    cin >> N;
    vector<int> ans;
    if (N == 2){
        ans = {2,4};
    }
    else if (N == 3){
        ans = {2,3,6};
    }
    else {
        ans = {2,3,6};
        for (int n = 3; n < N; n++){
            ans.push_back(ans.back()*2);
        }
    }

    for (int a: ans){
        cout << a << " ";
    }
    cout << endl;
}
0