結果
問題 | No.964 2020 |
ユーザー |
|
提出日時 | 2022-09-26 16:02:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 21 ms / 2,020 ms |
コード長 | 379 bytes |
コンパイル時間 | 1,799 ms |
コンパイル使用メモリ | 200,136 KB |
最終ジャッジ日時 | 2025-02-07 16:09:48 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#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;}