結果
問題 | No.893 お客様を誘導せよ |
ユーザー |
![]() |
提出日時 | 2020-02-02 18:27:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 497 bytes |
コンパイル時間 | 1,402 ms |
コンパイル使用メモリ | 170,816 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-18 21:19:43 |
合計ジャッジ時間 | 2,121 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll=long long; int main() { ll n; cin>>n; vector<vector<ll>> mp(n,vector<ll>(200)); for(ll i=0;i<n;++i){ ll tmp; cin>>tmp; for(ll j=0;j<tmp;++j){ ll num; cin>>num; mp[i][j]=num; } } bool is_space=false; for(ll i=0;i<200;++i){ for(ll j=0;j<n;++j){ if(mp[j][i]){ if(is_space)cout<<" "; is_space=true; cout<<mp[j][i]; } } } cout<<endl; return 0; }