/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int dp(int)':
/in/foo.cc:11:23: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
   f[i&1][2][1]=max(f[i&1^1][1][0],f[i&1^1][0][0])+a[i][2];
                      ~^~
/in/foo.cc:11:38: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
   f[i&1][2][1]=max(f[i&1^1][1][0],f[i&1^1][0][0])+a[i][2];
                                     ~^~
/in/foo.cc:12:19: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
   f[i&1][1][1]=f[i&1^1][0][0]+a[i][1];
                  ~^~
/in/foo.cc:13:19: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
   f[i&1][1][0]=f[i&1^1][2][1]+a[i][1];
                  ~^~
/in/foo.cc:14:23: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
   f[i&1][0][0]=max(f[i&1^1][1][1],f[i&1^1][2][1])+a[i][0];
                      ~^~
/in/foo.cc:14:38: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
   f[i&1][0][0]=max(f[i&1^1][1][1],f[i&1^1][2][1])+a[i][0];
                                     ~^~
/in/foo.cc:7:10: warning: unused variable 'k' [-Wunused-variable]
  int i,j,k;
          ^
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 2ms 348.0 KiB
#3 Accepted 3ms 256.0 KiB
#4 Accepted 3ms 340.0 KiB
#5 Accepted 3ms 332.0 KiB
#6 Accepted 3ms 332.0 KiB
#7 Accepted 21ms 1.0 MiB
#8 Accepted 43ms 1.395 MiB
#9 Accepted 38ms 1.375 MiB
#10 Accepted 36ms 1.492 MiB

信息

递交者
类型
递交
题目
P1470 教主的后花园
语言
C++
递交时间
2017-08-14 10:37:08
评测时间
2017-08-14 10:37:08
评测机
分数
100
总耗时
158ms
峰值内存
1.492 MiB