結果

問題 No.964 2020
ユーザー rogi52rogi52
提出日時 2022-09-26 16:02:30
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,020 ms
コード長 379 bytes
コンパイル時間 2,445 ms
コンパイル使用メモリ 206,212 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-22 15:33:01
合計ジャッジ時間 3,033 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(0);
    
    int N; cin >> N;
    if(N == 1){ cout << 1 << endl; return 0; }
    vector<int> a;
    rep(i,N) rep(_,N) a.push_back(i);
    sort(a.rbegin(), a.rend());
    for(int x : a) cout << x; cout << endl;
}
0