Wrong Answer

foo.cc: In function 'int main()':
foo.cc:13:21: warning: left operand of comma operator has no effect [-Wunused-value]
   13 |  for(int i=1,j=i+1;i<n,j<=n;i++,j++)
      |                    ~^~
foo.cc:15:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   15 |    if(a[i]<a[j]||a[i]==a[j]&&b[i]>b[j])
      |                  ~~~~~~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 268, expect 2274. 3ms 384.0 KiB
#2 Wrong Answer Read 25, expect 2251. 7ms 384.0 KiB
#3 Wrong Answer Read 20220, expect 83605. 86ms 1.117 MiB
#4 Wrong Answer Read 20302, expect 33862. 65ms 1.117 MiB
#5 Wrong Answer Read 20348, expect 79545. 76ms 1.246 MiB
#6 Wrong Answer Read 28994, expect 259243. 144ms 3.242 MiB
#7 Wrong Answer Read 103445, expect 54802. 104ms 2.742 MiB
#8 Wrong Answer Read 87113, expect 215616. 119ms 2.992 MiB
#9 Wrong Answer Read 216363, expect 55044. 130ms 2.867 MiB
#10 Wrong Answer Read 4, expect 10. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1900 假期作业
语言
C++
递交时间
2022-06-20 09:28:37
评测时间
2022-06-20 09:28:37
评测机
分数
0
总耗时
740ms
峰值内存
3.242 MiB