/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:61:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  For(i,1,r1)
          ^
/in/foo.cc:13:39: note: in definition of macro 'For'
 #define For(i,a,b) for (int i = a;i = b;--i)
                                       ^
/in/foo.cc:62:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   For(j,1,r2)
           ^
/in/foo.cc:13:39: note: in definition of macro 'For'
 #define For(i,a,b) for (int i = a;i = b;--i)
                                       ^
/in/foo.cc:67:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  For(i,1,shl(1,N)-1) {
                   ^
/in/foo.cc:13:39: note: in definition of macro 'For'
 #define For(i,a,b) for (int i = a;i = b;--i)
                                       ^
/in/foo.cc:71:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  For(i,1,shl(1,M)-1) {
                   ^
/in/foo.cc:13:39: note: in definition of macro 'For'
 #define For(i,a,b) for (int i = a;i = b;--i)
                                       ^
/in/foo.cc:75:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  For(i,1,shl(1,N)-1) For(j,1,shl(1,M)-1) dp[i][j] = 1000000;
                   ^
/in/foo.cc:13:39: note: in definition of macro 'For'
 #define For(i,a,b) for (int i = a;i = b;--i)
                                       ^
/in/foo.cc:75:39: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  For(i,1,shl(1,N)-1) For(j,1,shl(1,M)-1) dp[i][j] = 1000000;
                                       ^
/in/foo.cc:13:39: note: in definition of macro 'For'
 #define For(i,a,b) for (int i = a;i = b;--i)
                                       ^
/in/foo.cc:76:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  For(i,1,shl(1,N)-1) For(j,1,shl(1,M)-1) if (sumA[i] == sumB[j])
                   ^
/in/foo.cc:13:39: note: in definition of macro 'For'
 #define For(i,a,b) for (int i = a;i = b;--i)
                                       ^
/in/foo.cc:76:39: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  For(i,1,shl(1,N)-1) For(j,1,shl(1,M)-1) if (sumA[i] == sumB[j])
                                       ^
/in/foo.cc:13:39: note: in definition of macro 'For'
 #define For(i,a,b) for (int i = a;i = b;--i)
                                       ^
/in/foo.cc:68:8: warning: array subscript is below array bounds [-Warray-bounds]
  sumA[i] = 0;
  ~~~~~~^
/in/foo.cc:69:50: warning: array subscript is below array bounds [-Warray-bounds]
  rep(j,N) if ((shl(1,j) & i) != 0) sumA[i] += A[j];
                                                  ^
/in/foo.cc:69:44: warning: array subscript is below array bounds [-Warray-bounds]
  rep(j,N) if ((shl(1,j) & i) != 0) sumA[i] += A[j];
                                    ~~~~~~~~^~~~~~~
/in/foo.cc:72:8: warning: array subscript is below array bounds [-Warray-bounds]
  sumB[i] = 0;
  ~~~~~~^
/in/foo.cc:73:50: warning: array subscript is below array bounds [-Warray-bounds]
  rep(j,M) if ((shl(1,j) & i) != 0) sumB[i] += B[j];
                                                  ^
/in/foo.cc:73:44: warning: array subscript is below array bounds [-Warray-bounds]
  rep(j,M) if ((shl(1,j) & i) != 0) sumB[i] += B[j];
                                    ~~~~~~~~^~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Time Exceeded ≥1003ms ≥356.0 KiB
#3 Time Exceeded ≥1004ms ≥368.0 KiB
#4 Time Exceeded ≥1003ms ≥256.0 KiB
#5 Time Exceeded ≥1004ms ≥256.0 KiB
#6 Time Exceeded ≥1005ms ≥256.0 KiB
#7 Time Exceeded ≥1003ms ≥328.0 KiB
#8 Time Exceeded ≥1005ms ≥256.0 KiB
#9 Time Exceeded ≥1013ms ≥368.0 KiB
#10 Time Exceeded ≥1007ms ≥360.0 KiB

信息

递交者
类型
递交
题目
P1758 硬币
语言
C++
递交时间
2017-07-02 20:25:06
评测时间
2017-07-02 20:25:06
评测机
分数
10
总耗时
≥9053ms
峰值内存
≥368.0 KiB