Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <math.h>
- #include <string>
- #include <algorithm>
- #include <set>
- using namespace ::std;
- int main()
- {
- int String[100001];
- int numer[101];
- int Nnumer, Nstring;
- cin >> Nstring;
- for (int i = 1; i <= Nstring; i++)
- cin >> String[i];
- string s;
- cin >> s;
- cin >> Nnumer;
- for (int i = 1; i <= Nnumer; i++)
- cin >> numer[i];
- sort(String + 1, String + Nstring + 1);
- for (int i = 1; i <= Nnumer; i++)
- cout << String[numer[i]] << endl;
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment