結果
| 問題 |
No.893 お客様を誘導せよ
|
| コンテスト | |
| ユーザー |
alorie10
|
| 提出日時 | 2019-09-27 21:34:11 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 493 bytes |
| コンパイル時間 | 1,691 ms |
| コンパイル使用メモリ | 169,452 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-24 20:53:17 |
| 合計ジャッジ時間 | 2,503 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n,a,b,MAX,V[1000];
vector<ll> v[1000];
int main(void){
cin>>n;
for(int i=0;i<n;i++){
cin>>a;
V[i]=a;
MAX=max(MAX,a);
for(int j=0;j<a;j++){
cin>>b;
v[i].push_back(b);
}
}
for(int i=0;i<MAX;i++){
for(int j=0;j<n;j++){
if(V[j]<=i)continue;
cout<<v[j][i]<<" ";
}
}
cout<<endl;
}
alorie10