记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:22:26: warning: statement has no effect [-Wunused-value]
   22 |                 dp[i][j] == 0;
      |                 ~~~~~~~~~^~~~
foo.cc:33:47: warning: array subscript -1 is below array bounds of 'int [101]' [-Warray-bounds]
   33 |                 dp[i][j] = max(dp[i - 1][j - 1] + a[i], dp[i][j]);
      |                                ~~~~~~~~~~~~~~~^
foo.cc:10:5: note: while referencing 'dp'
   10 | int dp[10001][101];
      |     ^~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 9730, expect 9050. 4ms 412.0 KiB
#2 Wrong Answer Read 14119, expect 13811. 3ms 412.0 KiB
#3 Wrong Answer Read 14233, expect 13992. 4ms 412.0 KiB
#4 Wrong Answer Read 8481, expect 8132. 4ms 368.0 KiB
#5 Wrong Answer Read 42323, expect 41741. 4ms 592.0 KiB
#6 Wrong Answer Read 44250, expect 44459. 4ms 540.0 KiB
#7 Wrong Answer Read 42187, expect 26575. 4ms 540.0 KiB
#8 Wrong Answer Read 124157, expect 87756. 4ms 712.0 KiB
#9 Wrong Answer Read 108331, expect 85473. 5ms 796.0 KiB
#10 Wrong Answer Read 236156, expect 89116. 5ms 796.0 KiB
#11 Wrong Answer Read 655154, expect 99112. 17ms 4.277 MiB
#12 Wrong Answer Read 704494, expect 98859. 17ms 4.262 MiB
#13 Wrong Answer Read 701682, expect 98711. 22ms 4.176 MiB
#14 Wrong Answer Read 773008, expect 98999. 16ms 4.277 MiB
#15 Wrong Answer Read 370642, expect 98534. 17ms 4.277 MiB
#16 Wrong Answer Read 845640, expect 98989. 22ms 4.289 MiB
#17 Wrong Answer Read 261845, expect 98681. 21ms 4.277 MiB
#18 Wrong Answer Read 1095269, expect 98728. 17ms 4.277 MiB
#19 Wrong Answer Read 201330, expect 98343. 19ms 4.277 MiB
#20 Wrong Answer Read 87200, expect 67583. 17ms 4.277 MiB

信息

递交者
类型
递交
题目
题3 聪明伶俐的香穗子
题目数据
下载
语言
C++
递交时间
2023-11-18 15:41:12
评测时间
2023-11-18 15:41:12
评测机
分数
0
总耗时
234ms
峰值内存
4.289 MiB