/ Vijos /

记录详情

Wrong Answer

/in/foo.cc:1:0: warning: ignoring #pragma comment  [-Wunknown-pragmas]
 #pragma comment(linker, "/STACK:1024000000,1024000000")
 
/in/foo.cc: In function 'bool check(long long int)':
/in/foo.cc:116:10: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
    if(!(i+j&1)){
         ~^~
/in/foo.cc:119:50: warning: overflow in implicit constant conversion [-Woverflow]
     if(id[i][j]%m!=1) add(id[i][j],id[i][j]-1,inf);
                                                  ^
/in/foo.cc:120:50: warning: overflow in implicit constant conversion [-Woverflow]
     if(id[i][j]%m!=0) add(id[i][j],id[i][j]+1,inf);
                                                  ^
/in/foo.cc:121:47: warning: overflow in implicit constant conversion [-Woverflow]
     if(id[i][j]>m) add(id[i][j],id[i][j]-m,inf);
                                               ^
/in/foo.cc:122:54: warning: overflow in implicit constant conversion [-Woverflow]
     if(id[i][j]<=(n-1)*m) add(id[i][j],id[i][j]+m,inf);
                                                      ^
/in/foo.cc:114:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(re int i=1;i<=n;i++)
  ^~~
/in/foo.cc:124:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   dinic();
   ^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:133:6: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
      for(re int i=1;i<=n;i++)
      ^~~
/in/foo.cc:139:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
       for(re int i=1;i<=n;i++)
       ^~~
/in/foo.cc:141:15: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
         if(!(i+j&1)) S1+=a[i][j];
              ~^~
/in/foo.cc:145:50: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
       if(wish>=m&&check(wish)) cout<<wish*(n*m>>1+1)-S1<<endl;
                                                 ~^~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 500.0 KiB
#2 Wrong Answer 41ms 496.0 KiB
#3 Wrong Answer 21ms 384.0 KiB
#4 Wrong Answer 913ms 512.0 KiB
#5 Wrong Answer 908ms 512.0 KiB
#6 Wrong Answer 907ms 640.0 KiB
#7 Wrong Answer 460ms 512.0 KiB
#8 Wrong Answer 197ms 512.0 KiB
#9 Wrong Answer 114ms 2.344 MiB
#10 Wrong Answer 928ms 628.0 KiB

信息

递交者
类型
递交
题目
P1940 奇怪的游戏
语言
C++
递交时间
2018-04-16 19:20:52
评测时间
2018-04-16 19:20:52
评测机
分数
0
总耗时
4496ms
峰值内存
2.344 MiB