0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 20:16:29 +00:00

P3156 【深基15.例1】询问学号

R38858817
This commit is contained in:
Baoshuo Ren 2020-09-25 19:38:44 +08:00 committed by Baoshuo Ren
parent fbe2b155c3
commit 9808796487
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

18
problem/P3156/P3156.cpp Normal file
View File

@ -0,0 +1,18 @@
// R38858817
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, m, a[10000005], q;
cin >> n >> m;
for (int i = 0; i < n; i++) {
cin >> a[i];
}
for (int i = 0; i < m; i++) {
cin >> q;
cout << a[q-1] << endl;
}
return 0;
}