/ OIer TK /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:11:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   11 |         for(int i = 2;i < n;i++)cnt+=(a[i]>a[i-1]&&a[i]>a[i+1]||a[i]<a[i-1]&&a[i]<a[i+1]);
      |                                       ~~~~~~~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 165ms 4.152 MiB
#2 Accepted 209ms 4.145 MiB
#3 Accepted 223ms 4.133 MiB
#4 Accepted 216ms 4.105 MiB
#5 Accepted 219ms 4.082 MiB
#6 Accepted 134ms 4.094 MiB
#7 Accepted 179ms 4.098 MiB
#8 Accepted 222ms 4.098 MiB
#9 Accepted 189ms 4.16 MiB
#10 Accepted 222ms 4.062 MiB

信息

递交者
类型
递交
比赛
比赛5
语言
C++
递交时间
2023-05-27 21:08:24
评测时间
2023-05-27 21:08:24
评测机
分数
100
总耗时
1982ms
峰值内存
4.16 MiB