結果

問題 No.893 お客様を誘導せよ
ユーザー bin101bin101
提出日時 2019-09-27 22:16:02
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 1,114 bytes
コンパイル時間 867 ms
コンパイル使用メモリ 75,632 KB
実行使用メモリ 4,400 KB
最終ジャッジ日時 2023-10-24 21:51:07
合計ジャッジ時間 1,727 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 6 ms
4,348 KB
testcase_03 AC 20 ms
4,348 KB
testcase_04 AC 20 ms
4,348 KB
testcase_05 AC 19 ms
4,348 KB
testcase_06 AC 13 ms
4,348 KB
testcase_07 AC 1 ms
4,348 KB
testcase_08 AC 40 ms
4,400 KB
testcase_09 AC 2 ms
4,348 KB
testcase_10 AC 1 ms
4,348 KB
testcase_11 AC 2 ms
4,348 KB
testcase_12 AC 3 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <cmath>
#include <algorithm>
#include <cfloat>
#include <stack>
#include <queue>
#include <vector>
#include <string>
#include <iostream>
#include <set>
#include <map>
#include <time.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef pair<int,int> P;
typedef pair<ll,pair<ll,ll> > p;
#define BIG_NUM 2000000000
#define MOD 1000000007
#define EPS 0.000000001
#define bit(n,k) ((n>>k)&1) /*nのk bit目*/
static const int MAX_SIZE = 1 << 17; //segment tree のサイズ。この実装では2べきにする必要がある。 2^17 ≒ 1.3 * 10^5
const ll INF=1ll<<60;
const int MAX=60;

vector<int> V[1100],ans;


int main(){
    int N,temp,a;
    cin>>N;
    for(int i=0;i<N;i++){
        cin>>temp;
        for(int j=0;j<temp;j++){
            cin>>a;
            V[i].push_back(a);
        }
    }

    for(int i=0;i<110;i++){
        for(int j=0;j<N;j++){
            if(i<(int)V[j].size()) ans.push_back(V[j][i]);
        }
    }
    for(int i=0;i<(int)ans.size();i++){
        if(i) cout<<" ";
        cout<<ans[i];
    }
    cout<<endl;
}

0