結果
問題 | No.893 お客様を誘導せよ |
ユーザー |
|
提出日時 | 2019-11-17 15:28:22 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 377 bytes |
コンパイル時間 | 1,589 ms |
コンパイル使用メモリ | 171,796 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-25 05:57:08 |
合計ジャッジ時間 | 2,371 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ int n;cin >> n; vector<vector<int>> a(n); for(int i=0;i<n;i++){ int t;cin >> t; for(int j=0;j<t;j++){ int x;cin >> x; a[i].push_back(x); } } for(int i=1;i<105;i++){ for(int j=0;j<n;j++){ if(i<=a[j].size()){ cout << a[j][i-1] << " "; } } } cout << endl; }