/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:15:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if((a[i]<=a[i-1]&&a[i]<=a[i+1])||a[i]>=a[i-1]&&a[i]>=a[i+1])
                                    ~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc:15:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
   if((a[i]<=a[i-1]&&a[i]<=a[i+1])||a[i]>=a[i-1]&&a[i]>=a[i+1])
     ^
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 360.0 KiB
#2 Wrong Answer 3ms 344.0 KiB
#3 Wrong Answer 3ms 256.0 KiB
#4 Wrong Answer 3ms 256.0 KiB
#5 Wrong Answer 28ms 1.086 MiB
#6 Wrong Answer 19ms 1.125 MiB
#7 Wrong Answer 21ms 1.211 MiB
#8 Wrong Answer 22ms 1.125 MiB
#9 Wrong Answer 20ms 1.105 MiB
#10 Wrong Answer 19ms 1.078 MiB

信息

递交者
类型
递交
题目
P1615 旅行
语言
C++
递交时间
2017-09-09 09:56:57
评测时间
2017-09-09 09:56:57
评测机
分数
0
总耗时
144ms
峰值内存
1.211 MiB