QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#713937#6855. Assertionhejinming983282#WA 10ms3688kbC++23920b2024-11-05 20:57:392024-11-05 20:57:40

Judging History

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

  • [2024-11-05 20:57:40]
  • 评测
  • 测评结果:WA
  • 用时:10ms
  • 内存:3688kb
  • [2024-11-05 20:57:39]
  • 提交

answer

// Author : hejinming2012
#include <bits/stdc++.h>
#define int long long
#define endl '\n'
#define dbg(x) cout << #x " = " << (x) << endl
#define quickio ios::sync_with_stdio(false);
#define quickin cin.tie(0);
#define quickout cout.tie(0);

using namespace std;
inline int read() {
    int now = 0, nev = 1; char c = getchar();
    while(c < '0' || c > '9') { if(c == '-') nev = -1; c = getchar(); }
    while(c >= '0' && c <= '9') { now = (now << 1) + (now << 3) + (c & 15); c = getchar(); }
    return now * nev;
}
void write(int x) {
    if(x < 0) putchar('-'), x = -x;
    if(x > 9) write(x / 10);
    putchar(x % 10 + '0');
}

signed main() {
    quickio
    quickin
    quickout
    int T = read();
    while(T--) {
        int n = read(), m = read(), d = read();
        int num = (m + n - 1) / n;
        if(num >= d) puts("YES");
        else puts("NO");
    }
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 10ms
memory: 3688kb

input:

100000
357307304 363942958 1
662576913 905718124 995220611
453416937 526170453 0
119873136 154256418 1
41415817 125860824 705825857
200416889 827676915 3
176598443 191432743 294885355
215284443 380024466 389737003
578805740 738635880 0
22343465 928072945 1
73751065 983487501 572309207
511276117 7047...

output:

YES
NO
YES
YES
NO
YES
NO
NO
YES
YES
NO
YES
NO
NO
NO
YES
YES
YES
NO
YES
YES
NO
NO
NO
NO
NO
YES
YES
NO
YES
YES
YES
NO
YES
YES
NO
NO
YES
NO
YES
YES
NO
NO
YES
NO
YES
NO
NO
YES
NO
NO
YES
NO
YES
NO
YES
NO
YES
NO
YES
YES
YES
NO
YES
YES
YES
NO
YES
YES
YES
YES
NO
YES
YES
NO
NO
NO
NO
YES
NO
NO
YES
YES
YES
NO
...

result:

wrong answer 1st lines differ - expected: 'Yes', found: 'YES'