結果
問題 | No.893 お客様を誘導せよ |
ユーザー |
![]() |
提出日時 | 2019-09-29 23:17:27 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 19 ms / 2,000 ms |
コード長 | 820 bytes |
コンパイル時間 | 1,095 ms |
コンパイル使用メモリ | 141,304 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 15:01:01 |
合計ジャッジ時間 | 1,959 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
#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; }