結果
問題 | No.893 お客様を誘導せよ |
ユーザー | d_sei |
提出日時 | 2019-11-02 21:09:31 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 39 ms / 2,000 ms |
コード長 | 1,018 bytes |
コンパイル時間 | 915 ms |
コンパイル使用メモリ | 99,624 KB |
実行使用メモリ | 7,440 KB |
最終ジャッジ日時 | 2023-10-13 01:29:11 |
合計ジャッジ時間 | 2,241 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,352 KB |
testcase_01 | AC | 1 ms
4,352 KB |
testcase_02 | AC | 7 ms
4,364 KB |
testcase_03 | AC | 21 ms
6,960 KB |
testcase_04 | AC | 21 ms
6,912 KB |
testcase_05 | AC | 20 ms
6,708 KB |
testcase_06 | AC | 14 ms
5,560 KB |
testcase_07 | AC | 2 ms
4,348 KB |
testcase_08 | AC | 39 ms
7,332 KB |
testcase_09 | AC | 6 ms
7,380 KB |
testcase_10 | AC | 1 ms
4,352 KB |
testcase_11 | AC | 5 ms
7,384 KB |
testcase_12 | AC | 6 ms
7,440 KB |
ソースコード
#include<iostream> #include<string> #include<algorithm> #include<vector> #include<queue> #include<map> #include<math.h> #include<iomanip> #include<set> #include<numeric> #include<cstring> #include<cstdio> #include<functional> #include<bitset> #include<limits.h> #include<cassert> #include<iterator> #include<complex> #include<stack> using namespace std; #define lint long long int /* vector<char>al(26); al = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; vector<char>AL(26); AL = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}; */ int main() { int N; cin >> N; vector < vector<int>>vec(N, vector<int>(1000)); for (int i = 0; i < N; i++) { cin >> vec.at(i).at(0); for (int j = 1; j <= vec.at(i).at(0); j++) { cin >> vec.at(i). at(j); } } for (int j = 1; j < 200; j++) { for (int i = 0; i < N; i++) { if (vec.at(i).at(j)) { cout << vec.at(i).at(j) << ' '; } } } }