結果
| 問題 |
No.2184 A○B問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-13 21:31:08 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 390 bytes |
| コンパイル時間 | 2,061 ms |
| コンパイル使用メモリ | 194,528 KB |
| 最終ジャッジ日時 | 2025-02-10 02:08:23 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 12 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int n;
vector<int> a,b;
void solve(){
for(auto &i:a)i--;
for(auto &i:b)i--;
for(int i = 0;i<n;i++){
cout<<b[a[i]]+1<<' ';
}
cout<<endl;
}
signed main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
n= 5;
a= vector<int>(n);
b = vector<int>(n);
for(auto &i:a)cin >> i;
for(auto &i:b)cin >> i;
solve();
}