Submission #1125860

#TimeUsernameProblemLanguageResultExecution timeMemory
1125860AgageldiBrunhilda’s Birthday (BOI13_brunhilda)C++20
2.54 / 100
22 ms1352 KiB
/* ID: agageld1 LANG: C++17 TASK: */ #include <bits/stdc++.h> using namespace std; #define ll long long #define N 400005 #define ff first #define ss second #define pb push_back #define sz(s) (int)s.size() #define rep(c, a, b) for(c = a; c <= b; c++) //mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); ll n, t, T, a[N], m, q; string s, g, h; int main () { //freopen("txt.in","r",stdin); //freopen("txt.out","w",stdout); ios::sync_with_stdio(0);cin.tie(0); cin >> m >> q; for(int i = 1; i <= m;i++) { cin >> a[i]; } for(int i = 1;i<= q; i++) { int x; cin >> x; if(a[1] % x == 0) { cout << "oo\n"; continue; } cout << (a[1] + x-1)/x << "\n"; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...