记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:26:47: warning: array subscript -1 is below array bounds of 'int [101]' [-Warray-bounds]
   26 |                 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. 4ms 412.0 KiB
#3 Wrong Answer Read 14233, expect 13992. 3ms 328.0 KiB
#4 Wrong Answer Read 8481, expect 8132. 3ms 412.0 KiB
#5 Wrong Answer Read 42323, expect 41741. 4ms 540.0 KiB
#6 Wrong Answer Read 44250, expect 44459. 4ms 540.0 KiB
#7 Wrong Answer Read 42187, expect 26575. 4ms 588.0 KiB
#8 Wrong Answer Read 124157, expect 87756. 4ms 796.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. 19ms 4.223 MiB
#12 Wrong Answer Read 704494, expect 98859. 17ms 4.277 MiB
#13 Wrong Answer Read 701682, expect 98711. 16ms 4.277 MiB
#14 Wrong Answer Read 773008, expect 98999. 16ms 4.281 MiB
#15 Wrong Answer Read 370642, expect 98534. 16ms 4.273 MiB
#16 Wrong Answer Read 845640, expect 98989. 16ms 4.277 MiB
#17 Wrong Answer Read 261845, expect 98681. 16ms 4.277 MiB
#18 Wrong Answer Read 1095269, expect 98728. 17ms 4.277 MiB
#19 Wrong Answer Read 201330, expect 98343. 16ms 4.277 MiB
#20 Wrong Answer Read 87200, expect 67583. 17ms 4.199 MiB

信息

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