結果
問題 | No.893 お客様を誘導せよ |
ユーザー |
|
提出日時 | 2019-09-28 14:54:02 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 19 ms / 2,000 ms |
コード長 | 565 bytes |
コンパイル時間 | 1,573 ms |
コンパイル使用メモリ | 172,936 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-02 07:45:54 |
合計ジャッジ時間 | 2,648 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){cin.tie(0);ios::sync_with_stdio(false);int N;cin >> N;vector<vector<int>> As(N, vector<int>(100, 0));for (auto & Ai : As){int p;cin >> p;for (int j = 0; j < p ; ++j) cin >> Ai[j];}vector<int> ans;for (int j = 0; j < 100; ++j){for (int i = 0; i < N; ++i){if (As[i][j] != 0) ans.push_back(As[i][j]);}}cout << ans[0];for (int k = 1; k < ans.size(); ++k) cout << " " << ans[k];return 0;}