/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:15:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if((a[n]!=1)&&(a[n]!=-1)||(!n))
      ~~~~~~~~~^~~~~~~~~~~~
foo.cc:16:22: warning: second operand of conditional expression has no effect [-Wunused-value]
    cout<<(a[n]>0)?a[n]:-a[n];
                   ~~~^
foo.cc:16:24: warning: third operand of conditional expression has no effect [-Wunused-value]
    cout<<(a[n]>0)?a[n]:-a[n];
                        ^~~~~
foo.cc:30:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if((a[i]!=1)&&(a[i]!=-1)||(!i))
       ~~~~~~~~~^~~~~~~~~~~~
foo.cc:31:23: warning: second operand of conditional expression has no effect [-Wunused-value]
     cout<<(a[i]>0)?a[i]:-a[i];
                    ~~~^
foo.cc:31:25: warning: third operand of conditional expression has no effect [-Wunused-value]
     cout<<(a[i]>0)?a[i]:-a[i];
                         ^~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer Read -0x^3+1, expect -50x^3+1. 2ms 384.0 KiB
#2 Wrong Answer Read x^3-0x^2, expect x^3-100x^2. 2ms 364.0 KiB
#3 Wrong Answer Read -x^99-0x^50+1x^2+x+1, expect -x^99-7x^50+100x.... 2ms 384.0 KiB
#4 Wrong Answer Read -0x^10-0x^9+1x^8..., expect -5x^10-3x^9+4x^8.... 2ms 384.0 KiB
#5 Wrong Answer Read 1x^20-0x^19+1x^1..., expect 2x^20-2x^19+4x^1.... 2ms 384.0 KiB
#6 Wrong Answer Read -0x^30-0x^29+1x^..., expect -2x^30-2x^29+4x^.... 1ms 384.0 KiB
#7 Wrong Answer Read x^40+1x^38-0x^37..., expect x^40+5x^38-2x^37.... 2ms 384.0 KiB
#8 Wrong Answer Read 1x^50+1x^49-0x^4..., expect 4x^50+2x^49-5x^4.... 2ms 384.0 KiB
#9 Wrong Answer Read 1x^80+1x^79-0x^7..., expect 3x^80+4x^79-5x^7.... 2ms 384.0 KiB
#10 Wrong Answer Read -x^99+1x^98-0x^9..., expect -x^99+5x^98-4x^9.... 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1812 多项式输出
语言
C++
递交时间
2021-04-24 10:08:33
评测时间
2021-04-24 10:08:33
评测机
分数
0
总耗时
20ms
峰值内存
384.0 KiB