OverClocking!

This commit is contained in:
e2hang
2025-08-15 22:16:42 +08:00
parent f40ad1c843
commit 8edd0f98b5
7 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#include <vector>
#include <iostream>
using namespace std;
int main(){
int n, m;
cin >> n >> m;
vector<int> a;
int tmp;
for(int i = 0; i < n; i++){
cin >> tmp;
a.push_back(tmp);
}
for(int i = 0; i < m; i++){
cin >> tmp;
cout << a[tmp + 1] << endl;
}
return 0;
}