#include <bits/stdc++.h> using namespace std; const int N = 200010; int n; int a[N]; int q; int main(){ cin >> n; for(int i = 1; i<=n; i++)cin >> a[i]; cin >> q; while(q--){ int t; cin >> t; int f[N],vis[110]; memset(vis,0,sizeof(vis)); int j = 0; int res = INT_MAX; ...