結果
問題 | No.1628 Sorting Integers (MAX of M) |
ユーザー |
![]() |
提出日時 | 2023-06-21 21:43:05 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 287 bytes |
コンパイル時間 | 1,697 ms |
コンパイル使用メモリ | 195,004 KB |
最終ジャッジ日時 | 2025-02-14 23:54:12 |
ジャッジサーバーID (参考情報) |
judge7 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ int N, c; string S=""; cin >> N; for (int i=1; i<=9; i++){ cin >> c; S += string(c, '0'+i); } reverse(S.begin(), S.end()); cout << S << endl; return 0; }