QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#578893 | #9256. Quantum Supremacy | foolnine | WA | 0ms | 3700kb | C++20 | 377b | 2024-09-20 22:27:52 | 2024-09-20 22:27:53 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
int main(void)
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
i64 n, a, b;
cin >> n >> a >> b;
i64 t = (n + a - 1) / a;
if (t < b) {
cout << -1 << endl;
} else {
t = t / b;
cout << (n + t - 1) / t << endl;
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3700kb
input:
1024 1 1
output:
1
result:
ok answer is '1'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
1024 1 2
output:
2
result:
ok answer is '2'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
1 1 1
output:
1
result:
ok answer is '1'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
1 1 2
output:
-1
result:
ok answer is '-1'
Test #5:
score: -100
Wrong Answer
time: 0ms
memory: 3548kb
input:
10 2 1
output:
2
result:
wrong answer expected '0', found '2'