結果

問題 No.893 お客様を誘導せよ
ユーザー arupakawaiiiarupakawaiii
提出日時 2020-02-02 09:59:48
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 482 bytes
コンパイル時間 2,061 ms
コンパイル使用メモリ 176,640 KB
実行使用メモリ 4,864 KB
最終ジャッジ日時 2023-10-19 00:37:30
合計ジャッジ時間 4,243 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

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