Accepted

foo.cc: In function 'bool cp(zy, zy)':
foo.cc:10:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  return a.nd>b.nd||a.nd==b.nd&&a.xh<b.xh; 
                    ~~~~~~~~~~^~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:20:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=p;i<=q;i++)
     ^~~
foo.cc:22:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  return 0; 
  ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 424.0 KiB
#3 Accepted 42ms 1.148 MiB
#4 Accepted 43ms 1.184 MiB
#5 Accepted 45ms 1.148 MiB
#6 Accepted 147ms 2.715 MiB
#7 Accepted 135ms 2.719 MiB
#8 Accepted 130ms 2.715 MiB
#9 Accepted 127ms 2.719 MiB
#10 Accepted 2ms 352.0 KiB

信息

递交者
类型
递交
题目
P1900 假期作业
语言
C++
递交时间
2021-10-10 10:37:52
评测时间
2021-10-10 10:37:52
评测机
分数
100
总耗时
680ms
峰值内存
2.719 MiB