結果

問題 No.322 Geometry Dash
ユーザー ichyo
提出日時 2015-12-11 03:17:52
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 312 bytes
コンパイル時間 1,328 ms
コンパイル使用メモリ 161,292 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-15 07:51:51
合計ジャッジ時間 9,604 ms
ジャッジサーバーID
(参考情報)
judge6 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other AC * 1 WA * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
    int n;
    cin >> n;
    vector<int> a(n);
    for(int i = 0; i < n; i++) a[i] = i + 1;
    random_shuffle(a.begin(), a.end());
    for(int i = 0; i < n; i++) {
        cout << a[i];
        if(i == n-1) cout << endl;
        cout << " ";
    }
}
0