結果
問題 |
No.2184 A○B問題
|
ユーザー |
|
提出日時 | 2023-01-14 10:35:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 377 bytes |
コンパイル時間 | 1,952 ms |
コンパイル使用メモリ | 165,124 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-25 16:21:04 |
合計ジャッジ時間 | 3,169 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> P; #define REP(i,n) for(int i=0;i<int(n);i++) int a[10],b[10]; int main(void){ cin.tie(nullptr); ios_base::sync_with_stdio(false); int i,j,k; for(i=1;i<=5;i++) cin >> a[i]; for(i=1;i<=5;i++) cin >> b[i]; for(i=1;i<=5;i++) cout << a[b[i]] << ' '; cout << endl; return 0; }