結果
問題 | No.2184 A○B問題 |
ユーザー |
![]() |
提出日時 | 2023-01-14 12:12:13 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 381 bytes |
コンパイル時間 | 1,796 ms |
コンパイル使用メモリ | 166,864 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-25 19:04:22 |
合計ジャッジ時間 | 2,856 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 22 |
ソースコード
#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);}for(int i=0; i<5; i++){if(i+1 != hA.at(i)) hB.at(hA.at(i)-1)=hA.at(i);}for(auto x:hB){cout << x << " ";}return 0;}