제출 #1161933

#제출 시각아이디문제언어결과실행 시간메모리
1161933buraphon_numberoneIntercastellar (JOI22_ho_t1)C++20
25 / 100
806 ms589824 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; const char nl = '\n'; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; vector<int> o; while(n--) { int x, y = 1; cin >> x; while(x%2 == 0) { x /= 2; y *= 2; } while(y--) { o.push_back(x); } } int q; cin >> q; while(q--) { int j; cin >> j; cout << o[j-1] << nl; } return (0); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...