/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:19:48: warning: array subscript is above array bounds [-Warray-bounds]
  for(int i=1;i<=n;i++) dp[i][1][1]=1,dp[i][1][2]=num[i];
                                      ~~~~~~~~~~^
/in/foo.cc:32:83: warning: array subscript is above array bounds [-Warray-bounds]
    if(dp[i-1][j-1][1]<m&&dp[i-1][j-1][1]) dp[i][j][1]=dp[i-1][j-1][1]+1,dp[i][j][2]=num[i];
                                                                         ~~~~~~~~~~^
/in/foo.cc:33:38: warning: array subscript is above array bounds [-Warray-bounds]
    if(dp[i-1][j-1][1]&&dp[i-1][j-1][2]+num[i]<=t)
                        ~~~~~~~~~~~~~~^
/in/foo.cc:34:60: warning: array subscript is above array bounds [-Warray-bounds]
      dp[i][j][1]=dp[i-1][j-1][1],dp[i][j][2]=dp[i-1][j-1][2]+num[i];
                                              ~~~~~~~~~~~~~~^
/in/foo.cc:34:44: warning: array subscript is above array bounds [-Warray-bounds]
      dp[i][j][1]=dp[i-1][j-1][1],dp[i][j][2]=dp[i-1][j-1][2]+num[i];
                                  ~~~~~~~~~~^
/in/foo.cc:35:94: warning: array subscript is above array bounds [-Warray-bounds]
       if(dp[i-1][j][1]&&(dp[i-1][j][1]<dp[i][j][1]||(dp[i-1][j][1]==dp[i][j][1]&&dp[i-1][j][2]<dp[i][j][2])))
                                                                                  ~~~~~~~~~~~~^
/in/foo.cc:35:106: warning: array subscript is above array bounds [-Warray-bounds]
       if(dp[i-1][j][1]&&(dp[i-1][j][1]<dp[i][j][1]||(dp[i-1][j][1]==dp[i][j][1]&&dp[i-1][j][2]<dp[i][j][2])))
                                                                                                ~~~~~~~~~~^
/in/foo.cc:36:59: warning: array subscript is above array bounds [-Warray-bounds]
         dp[i][j][1]=dp[i-1][j][1],dp[i][j][2]=dp[i-1][j][2];
                                               ~~~~~~~~~~~~^
/in/foo.cc:36:45: warning: array subscript is above array bounds [-Warray-bounds]
         dp[i][j][1]=dp[i-1][j][1],dp[i][j][2]=dp[i-1][j][2];
                                   ~~~~~~~~~~^
# 状态 耗时 内存占用
#1 Accepted 2ms 2.547 MiB
#2 Accepted 3ms 4.309 MiB
#3 Accepted 2ms 2.684 MiB
#4 Accepted 9ms 22.562 MiB
#5 Accepted 10ms 22.676 MiB
#6 Accepted 9ms 22.691 MiB
#7 Accepted 10ms 24.43 MiB
#8 Accepted 9ms 22.559 MiB
#9 Accepted 10ms 24.441 MiB
#10 Accepted 9ms 22.688 MiB

信息

递交者
类型
递交
题目
P1392 拼拼图的小杉
语言
C++
递交时间
2017-10-04 17:33:26
评测时间
2017-10-04 17:33:26
评测机
分数
100
总耗时
79ms
峰值内存
24.441 MiB