結果
| 問題 | 
                            No.2184 A○B問題
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2023-01-13 21:41:07 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 772 bytes | 
| コンパイル時間 | 929 ms | 
| コンパイル使用メモリ | 111,388 KB | 
| 最終ジャッジ日時 | 2025-02-10 02:20:08 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 WA * 12 | 
ソースコード
#include <algorithm>
#include <climits>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <sstream>
#include <numeric>
#include <string>
#include <vector>
#include <queue>
int main()
{
	std::map<int, int> f1;
	std::map<int, int> f2;
	std::string line1;
	std::getline(std::cin, line1);
	std::istringstream iss1{ line1 };
	int ai;
	int i = 1;
	while (iss1 >> ai)
	{
		f1[i] = ai;
		i++;
	}
	std::string line2;
	std::getline(std::cin, line2);
	std::istringstream iss2{ line2 };
	int aj;
	int j = 1;
	while (iss2 >> aj)
	{
		f2[j] = aj;
		j++;
	}
	std::map<int, int> f3;
	for (int k = 1; k < j; k++)
	{
		f3[k] = f2[f1[k]];
	}
	for (auto c : f3)
	{
		std::cout << c.second << " ";
	}
	std::cout << '\n';
}