結果
問題 | No.2184 A○B問題 |
ユーザー |
![]() |
提出日時 | 2023-01-14 12:44:21 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 388 bytes |
コンパイル時間 | 1,834 ms |
コンパイル使用メモリ | 167,884 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-25 20:18:13 |
合計ジャッジ時間 | 2,441 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 23 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){vector<int> hA(5);vector<int> hB(5);for(int i=0; i<5; i++){cin >> hA.at(i);}for(int i=0; i<5; i++){cin >> hB.at(i);}vector<int> hANS(5);for(int i=0; i<5; i++){hANS.at(i)=hA.at(hB.at(i)-1);}for(auto x:hB){cout << x << " ";}return 0;}