/ WHOJ /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:19:29: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
   19 |   for(int k=i+1;k<j;k++)if(k-i&1)f[i][j]=max(f[i][j],f[i][k]+f[k+1][j]);
      |                            ~^~
foo.cc:11:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 |  scanf("%d %d", &n, &k);
      |  ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:12:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   12 |  for(int i=1;i<=n;i++)scanf("%d %d",a+i,b+i);
      |                       ~~~~~^~~~~~~~~~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 59ms 2.75 MiB
#2 Accepted 2ms 768.0 KiB
#3 Accepted 22ms 1.625 MiB
#4 Wrong Answer Read 144952559049, expect 145090774225. 19ms 2.5 MiB
#5 Accepted 3ms 1.25 MiB
#6 Accepted 8ms 1.625 MiB
#7 Accepted 22ms 2.375 MiB
#8 Accepted 84ms 3.617 MiB
#9 Accepted 1ms 256.0 KiB
#10 Accepted 2ms 1.0 MiB

信息

递交者
类型
递交
题目
P1442 皇室战争
题目数据
下载
语言
C++
递交时间
2022-08-03 21:47:27
评测时间
2022-08-03 21:47:27
评测机
分数
90
总耗时
227ms
峰值内存
3.617 MiB