結果

問題 No.893 お客様を誘導せよ
ユーザー watasihakodamawatasihakodama
提出日時 2019-09-29 23:17:27
言語 C++17(clang)
(17.0.6 + boost 1.83.0)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 820 bytes
コンパイル時間 914 ms
コンパイル使用メモリ 105,820 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-20 13:00:21
合計ジャッジ時間 1,695 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<vector>
#include<stack>
#include <cmath>
#include <limits>
#include<set>
#include <iomanip>
#include <queue>
#pragma GCC optimize("Ofast")
using namespace std;
const long long INF=20000000000;
//setprecision(2) <<

const int MOD = 1000000007;

long long max(long long a,long long b){
	if(a<b)return b;
	else return a;	
}
long long min(long long a,long long b){
	if(a>b)return b;
	else return a;	
}

set<long long>s;


int main(){
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	int N;
	cin>>N;
	int A[N][200];
	for(int i=0;i<N;i++){
		for(int j=0;j<200;j++)A[i][j]=-1;
	}
	for(int i=0;i<N;i++){
		int p;
		cin>>p;
		for(int j=0;j<p;j++)cin>>A[i][j];
	}
	
	for(int i=0;i<200;i++){
		for(int j=0;j<N;j++){
			if(A[j][i]!=-1)cout<<A[j][i]<<" ";
		}
	}
	cout<<endl;
}

	
0