Submission #923010

# Submission time Handle Problem Language Result Execution time Memory
923010 2024-02-06T12:32:45 Z 12345678 Brunhilda’s Birthday (BOI13_brunhilda) C++17
8.09524 / 100
23 ms 2140 KB
#include <bits/stdc++.h>

using namespace std;

long long m, q, pd=1, x, vl;

int main()
{
    cin.tie(NULL)->sync_with_stdio(false);
    cin>>m>>q;
    for (int i=1; i<=m; i++) cin>>x, pd=min((long long)10000005, pd*x);
    while (q--)
    {
        cin>>vl;
        if (vl>=pd) cout<<"oo\n";
        else cout<<2*(vl/x)+((vl%x)!=0)<<'\n';
    }
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Incorrect 1 ms 348 KB Output isn't correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Incorrect 1 ms 348 KB Output isn't correct
5 Incorrect 1 ms 348 KB Output isn't correct
6 Incorrect 0 ms 348 KB Output isn't correct
7 Incorrect 0 ms 348 KB Output isn't correct
8 Incorrect 1 ms 348 KB Output isn't correct
9 Incorrect 1 ms 348 KB Output isn't correct
10 Incorrect 0 ms 344 KB Output isn't correct
11 Incorrect 1 ms 348 KB Output isn't correct
12 Correct 0 ms 348 KB Output is correct
13 Incorrect 1 ms 348 KB Output isn't correct
14 Incorrect 1 ms 348 KB Output isn't correct
15 Incorrect 0 ms 348 KB Output isn't correct
16 Incorrect 1 ms 348 KB Output isn't correct
17 Incorrect 1 ms 348 KB Output isn't correct
18 Incorrect 2 ms 348 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Output isn't correct
2 Correct 6 ms 1116 KB Output is correct
3 Correct 5 ms 828 KB Output is correct
4 Incorrect 1 ms 348 KB Output isn't correct
5 Correct 4 ms 732 KB Output is correct
6 Incorrect 1 ms 344 KB Output isn't correct
7 Incorrect 1 ms 344 KB Output isn't correct
8 Incorrect 0 ms 348 KB Output isn't correct
9 Incorrect 5 ms 1112 KB Output isn't correct
10 Correct 6 ms 856 KB Output is correct
11 Incorrect 3 ms 720 KB Output isn't correct
12 Incorrect 0 ms 344 KB Output isn't correct
13 Incorrect 1 ms 348 KB Output isn't correct
14 Incorrect 1 ms 348 KB Output isn't correct
15 Incorrect 3 ms 856 KB Output isn't correct
16 Correct 6 ms 952 KB Output is correct
17 Incorrect 0 ms 348 KB Output isn't correct
18 Incorrect 7 ms 1112 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 9 ms 1368 KB Output isn't correct
2 Incorrect 7 ms 860 KB Output isn't correct
3 Incorrect 12 ms 1372 KB Output isn't correct
4 Incorrect 13 ms 1628 KB Output isn't correct
5 Incorrect 23 ms 2100 KB Output isn't correct
6 Incorrect 14 ms 1472 KB Output isn't correct
7 Incorrect 13 ms 1628 KB Output isn't correct
8 Incorrect 9 ms 1116 KB Output isn't correct
9 Incorrect 9 ms 1116 KB Output isn't correct
10 Incorrect 2 ms 600 KB Output isn't correct
11 Incorrect 4 ms 604 KB Output isn't correct
12 Incorrect 4 ms 576 KB Output isn't correct
13 Incorrect 14 ms 1628 KB Output isn't correct
14 Incorrect 14 ms 1760 KB Output isn't correct
15 Incorrect 4 ms 604 KB Output isn't correct
16 Incorrect 4 ms 604 KB Output isn't correct
17 Incorrect 5 ms 860 KB Output isn't correct
18 Incorrect 7 ms 856 KB Output isn't correct
19 Incorrect 4 ms 604 KB Output isn't correct
20 Incorrect 10 ms 1236 KB Output isn't correct
21 Incorrect 14 ms 1880 KB Output isn't correct
22 Incorrect 19 ms 2136 KB Output isn't correct
23 Incorrect 16 ms 1628 KB Output isn't correct
24 Incorrect 14 ms 1372 KB Output isn't correct
25 Incorrect 13 ms 1528 KB Output isn't correct
26 Incorrect 12 ms 1372 KB Output isn't correct
27 Incorrect 14 ms 1496 KB Output isn't correct
28 Incorrect 14 ms 1636 KB Output isn't correct
29 Incorrect 19 ms 2140 KB Output isn't correct
30 Incorrect 18 ms 1924 KB Output isn't correct
31 Incorrect 12 ms 1372 KB Output isn't correct
32 Incorrect 15 ms 1332 KB Output isn't correct
33 Incorrect 15 ms 1416 KB Output isn't correct
34 Incorrect 13 ms 1624 KB Output isn't correct
35 Incorrect 14 ms 1628 KB Output isn't correct
36 Incorrect 19 ms 1884 KB Output isn't correct
37 Incorrect 19 ms 2132 KB Output isn't correct
38 Incorrect 13 ms 1368 KB Output isn't correct
39 Incorrect 14 ms 1368 KB Output isn't correct
40 Incorrect 13 ms 1372 KB Output isn't correct
41 Correct 13 ms 1716 KB Output is correct
42 Incorrect 17 ms 1624 KB Output isn't correct