結果

問題 No.1114 足し算盆に返らず
ユーザー coco18000
提出日時 2020-07-17 21:39:30
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 7 ms / 2,000 ms
コード長 544 bytes
コンパイル時間 1,643 ms
コンパイル使用メモリ 169,772 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-29 22:33:57
合計ジャッジ時間 18,370 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

typedef long long int ll;
typedef pair<ll, ll> pll;

#define FOR(i, n, m) for(ll (i)=(m);(i)<(n);++(i))
#define REP(i, n) FOR(i,n,0)
#define OF64 std::setprecision(10)

const ll MOD = 1000000007;
const ll INF = (ll) 1e15;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    ll N;
    cin >> N;
    vector<ll> V;
    REP(i, N) {
        if (i % 2 == 0)
            V.push_back(i + 1);
    }
    REP(i, V.size()) {
        cout << V[i] << " ";
    }
    cout << endl;
    return 0;
}
0