結果

問題 No.893 お客様を誘導せよ
ユーザー arupakawaiii
提出日時 2020-02-02 09:59:48
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 482 bytes
コンパイル時間 1,473 ms
コンパイル使用メモリ 175,696 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-18 20:33:32
合計ジャッジ時間 3,836 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll=long long;


int main()
{
  ll n;
  cin>>n;
  map<int,vector<ll>> mp;
  for(ll i=0;i<n;++i){
    ll tmp;
    cin>>tmp;
    for(ll j=0;j<tmp;++j){
      ll num;
      cin>>num;
      mp[i].push_back(num);
    }
  }
  
  bool is_space=false;
  for(ll i=0;i<200;++i){
    for(ll j=0;j<n;++j){
      if(mp[j].at(i)){
        if(is_space)cout<<" ";
        is_space=true;
        cout<<mp[j].at(i);
      }
    }
  }
  cout<<endl;
}
0