Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:35:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    else if(xs<0&&2*a>0||xs>0&&2*a>0)cout<<xs<<'/'<<2*a<<endl;
            ~~~~^~~~~~~
/in/foo.cc:36:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    else if(xs>0&&2*a<0||xs<0&&2*a<0)cout<<-xs<<'/'<<-2*a<<endl;
            ~~~~^~~~~~~
/in/foo.cc:43:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if(zi<0&&mu>0||zi>0&&mu>0)cout<<zi<<'/'<<mu<<endl;
       ~~~~^~~~~~
/in/foo.cc:44:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    else if(zi>0&&mu<0||zi<0&&mu<0)cout<<-zi<<'/'<<-mu<<endl;
            ~~~~^~~~~~
/in/foo.cc:58:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    else if(k1<0&&k3>0||k1>0&&k3>0)cout<<k1<<'/'<<k3<<endl;
            ~~~~^~~~~~
/in/foo.cc:59:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    else if(k1<0&&k3<0||k1>0&&k3<0)cout<<-k1<<'/'<<-k3<<endl;
            ~~~~^~~~~~
/in/foo.cc:48:19: warning: variable 'lef' set but not used [-Wunused-but-set-variable]
    int xs=INT_MIN,lef=0;
                   ^~~
/in/foo.cc:55:11: warning: variable 'k2' set but not used [-Wunused-but-set-variable]
    int k1,k2,k3;
           ^~
# 状态 耗时 内存占用
#1 Accepted 52ms 444.0 KiB
#2 Wrong Answer 63ms 456.0 KiB
#3 Accepted 63ms 452.0 KiB
#4 Wrong Answer 64ms 444.0 KiB
#5 Accepted 64ms 444.0 KiB
#6 Wrong Answer 64ms 448.0 KiB
#7 Accepted 64ms 460.0 KiB
#8 Accepted 63ms 440.0 KiB
#9 Wrong Answer 64ms 444.0 KiB
#10 Wrong Answer 64ms 444.0 KiB

信息

递交者
类型
递交
题目
P2474 一元二次方程
语言
C++
递交时间
2024-10-04 17:44:00
评测时间
2024-10-04 17:44:00
评测机
分数
50
总耗时
630ms
峰值内存
460.0 KiB