QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#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;
}
详细
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'