結果
| 問題 | No.893 お客様を誘導せよ |
| コンテスト | |
| ユーザー |
watasihakodama
|
| 提出日時 | 2019-09-29 23:17:27 |
| 言語 | C++17(clang) (clang++ 22.1.2 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 2,000 ms |
| コード長 | 820 bytes |
| 記録 | |
| コンパイル時間 | 652 ms |
| コンパイル使用メモリ | 150,308 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-05-24 06:17:19 |
| 合計ジャッジ時間 | 1,514 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
コンパイルメッセージ
main.cpp:34:8: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension]
34 | int A[N][200];
| ^
main.cpp:34:8: note: read of non-const variable 'N' is not allowed in a constant expression
main.cpp:32:6: note: declared here
32 | int N;
| ^
1 warning generated.
ソースコード
#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;
}
watasihakodama