Submission #734481

#TimeUsernameProblemLanguageResultExecution timeMemory
7344811075508020060209tcIntercastellar (JOI22_ho_t1)C++14
0 / 100
93 ms4408 KiB
#include<bits/stdc++.h> using namespace std; #define int long long int n;int Q; vector<int>ar; signed main(){ cin>>n; for(int i=1;i<=n;i++){ int v; cin>>v; int cnt=1; while(v%2==0){ cnt++;v/=2; } for(int j=0;j<cnt;j++){ ar.push_back(v); } } cin>>Q; while(Q--){ int xi; cin>>xi; cout<<ar[xi-1]<<endl; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...