fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int tab[101];
  6. for(int i=1;i<=100;i++)cin>>tab[i];
  7. int t;
  8. cin>>t;
  9. while(t--)
  10. {
  11. int x;
  12. cin>>x;
  13. cout<<tab[x]<<endl;
  14. }
  15. }
Success #stdin #stdout 0s 5284KB
stdin
65 37 39 45 94 79 91 59 56 12 30 56 32 21 4 48 50 4 42 46 5 30 74 62 48 43 70 36 37 63 7 65 96 46 89 61 58 35 10 24 91 80 31 69 24 69 64 27 37 75 92 86 42 71 80 22 16 11 0 83 11 56 28 29 62 17 72 44 42 7 47 34 90 22 8 40 94 27 64 66 3 14 10 19 79 89 41 80 73 45 42 72 87 13 10 56 6 81 56 80 
10
15
9
11
3
19
11
16
1
7
8
stdout
4
56
30
39
42
30
48
65
91
59