QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#578893#9256. Quantum SupremacyfoolnineWA 0ms3700kbC++20377b2024-09-20 22:27:522024-09-20 22:27:53

Judging History

你现在查看的是最新测评结果

  • [2024-09-20 22:27:53]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3700kb
  • [2024-09-20 22:27:52]
  • 提交

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'