結果
| 問題 | No.893 お客様を誘導せよ |
| コンテスト | |
| ユーザー |
Dente
|
| 提出日時 | 2019-09-27 21:35:17 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 23 ms / 2,000 ms |
| + 456µs | |
| コード長 | 783 bytes |
| 記録 | |
| コンパイル時間 | 1,005 ms |
| コンパイル使用メモリ | 184,048 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-03 11:56:26 |
| 合計ジャッジ時間 | 2,684 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i,a) for(int i = 0; i < (a); i++)
#define ALL(a) (a).begin(),(a).end()
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1e9;
const int MOD = 1e9 + 7;
signed main(){
int n;
cin >> n;
int mx = 0;
int p[n];
vector<vector<int>> a(n);
REP(i,n){
cin >> p[i];
mx = max(mx, p[i]);
int t;
REP(j,p[i]){
cin >> t;
a[i].push_back(t);
}
}
vector<int> ans;
REP(i,mx){
REP(j,n){
if(i < p[j]){
ans.push_back(a[j][i]);
}
}
}
REP(i,ans.size()){
cout << ans[i];
if(i != ans.size() - 1){
cout << " ";
}
}
cout << endl;
}
Dente