結果

問題 No.2184 A○B問題
ユーザー Shirakami4LFE
提出日時 2023-01-14 12:39:16
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 388 bytes
コンパイル時間 2,152 ms
コンパイル使用メモリ 168,012 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-25 20:13:55
合計ジャッジ時間 3,446 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#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)=hB.at(hA.at(i)-1);
    }
    
    for(auto x:hB){
        cout << x << " ";
    }
    return 0;
}
0