| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1170871 | AlgorithmWarrior | Intercastellar (JOI22_ho_t1) | C++20 | 797 ms | 589824 KiB |
#include <bits/stdc++.h>
using namespace std;
vector<int>v;
void read(){
int n;
cin>>n;
while(n--){
int nr;
cin>>nr;
int fr=1;
while(nr%2==0){
nr/=2;
fr*=2;
}
while(fr--)
v.push_back(nr);
}
}
void process_queries(){
int q;
cin>>q;
while(q--){
int pos;
cin>>pos;
--pos;
cout<<v[pos]<<'\n';
}
}
int main()
{
read();
process_queries();
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
