QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#536926#3721. Simple AlgebrasudokuWA 1ms3780kbC++17655b2024-08-29 18:05:242024-08-29 18:05:26

Judging History

This is the latest submission verdict.

  • [2024-08-29 18:05:26]
  • Judged
  • Verdict: WA
  • Time: 1ms
  • Memory: 3780kb
  • [2024-08-29 18:05:24]
  • Submitted

answer

#include <iostream>
#include <vector>
#include <string>
#include <string.h>
#include <queue>
#include <bitset>
#include<numeric>
#include <unordered_map>
#include <iomanip>
#include <map>
#include <stack>
#include <set>
#include <algorithm>
#include <math.h>
using namespace std;
int main()
{
    int a,b,c;
    while(~scanf("%d%d%d",&a,&b,&c))
    {
        if(a==0&&b==0&&c==0)
            puts("Yes");
        else if(a<=0 || c<=0)
            puts("No");
        else
        {
            if(b * b <= 4 * a * c)
                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: 1ms
memory: 3780kb

input:

-10 -10 -10
-10 -10 -9
-10 -10 -8
-10 -10 -7
-10 -10 -6
-10 -10 -5
-10 -10 -4
-10 -10 -3
-10 -10 -2
-10 -10 -1
-10 -10 0
-10 -10 1
-10 -10 2
-10 -10 3
-10 -10 4
-10 -10 5
-10 -10 6
-10 -10 7
-10 -10 8
-10 -10 9
-10 -10 10
-10 -9 -10
-10 -9 -9
-10 -9 -8
-10 -9 -7
-10 -9 -6
-10 -9 -5
-10 -9 -4
-10 -9 ...

output:

No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
...

result:

wrong answer expected YES, found NO