/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:25:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(j1=a;j1>=0&&!dp[k][j1];j1--);
  ^~~
/in/foo.cc:26:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   if(j1<0)
   ^~
/in/foo.cc:28:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(j2=b;j2<=tot&&!dp[k][j2];j2++);
  ^~~
/in/foo.cc:29:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   if(j2>tot)
   ^~
/in/foo.cc:33:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  ans=max((j3+j1>>1)>=a?j3-j1>>1:j3-a,(j4+j2>>1)<=tot?j4-j2>>1:b-j4);
           ~~^~~
/in/foo.cc:33:26: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
  ans=max((j3+j1>>1)>=a?j3-j1>>1:j3-a,(j4+j2>>1)<=tot?j4-j2>>1:b-j4);
                        ~~^~~
/in/foo.cc:33:41: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  ans=max((j3+j1>>1)>=a?j3-j1>>1:j3-a,(j4+j2>>1)<=tot?j4-j2>>1:b-j4);
                                       ~~^~~
/in/foo.cc:33:56: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
  ans=max((j3+j1>>1)>=a?j3-j1>>1:j3-a,(j4+j2>>1)<=tot?j4-j2>>1:b-j4);
                                                      ~~^~~
/in/foo.cc:38:17: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
    ans=max(ans,i-t>>1);
                ~^~
# 状态 耗时 内存占用
#1 Accepted 3ms 256.0 KiB
#2 Accepted 4ms 2.438 MiB
#3 Accepted 4ms 2.25 MiB
#4 Accepted 4ms 2.445 MiB
#5 Accepted 3ms 2.375 MiB
#6 Accepted 3ms 256.0 KiB
#7 Accepted 16ms 2.375 MiB
#8 Accepted 14ms 2.375 MiB
#9 Accepted 21ms 4.43 MiB
#10 Accepted 18ms 4.5 MiB
#11 Accepted 16ms 2.5 MiB
#12 Accepted 8ms 512.0 KiB
#13 Accepted 10ms 2.375 MiB
#14 Accepted 5ms 472.0 KiB
#15 Accepted 15ms 2.727 MiB
#16 Accepted 16ms 4.445 MiB
#17 Accepted 133ms 2.625 MiB
#18 Accepted 583ms 10.875 MiB
#19 Accepted 289ms 4.375 MiB
#20 Accepted 653ms 13.094 MiB

信息

递交者
类型
递交
题目
P1987 游戏
语言
C++
递交时间
2017-07-06 17:13:40
评测时间
2017-07-06 17:13:40
评测机
分数
100
总耗时
1825ms
峰值内存
13.094 MiB