제출 #881721

#제출 시각아이디문제언어결과실행 시간메모리
881721AlphaMale06Intercastellar (JOI22_ho_t1)C++14
25 / 100
409 ms524288 KiB
#include <bits/stdc++.h> using namespace std; #define int long long #define pb push_back vector<int> a; signed main() { ios_base::sync_with_stdio(0); cin.tie(0); int n; cin >> n; for(int i=0; i < n; i++){ int cnt=0; int x; cin >> x; while(x%2==0){ x/=2; cnt++; } for(int j=0; j< (1<<cnt); j++)a.pb(x); } int q; cin >> q; while(q--){ int x; cin >> x; cout << a[x-1] << '\n'; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...