/ 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 2.355 MiB
#2 Wrong Answer 34ms 464.0 KiB
#3 Wrong Answer 36ms 480.0 KiB
#4 Wrong Answer 920ms 604.0 KiB
#5 Wrong Answer 1021ms 2.25 MiB
#6 Wrong Answer 803ms 2.25 MiB
#7 Wrong Answer 844ms 512.0 KiB
#8 Wrong Answer 853ms 600.0 KiB
#9 Wrong Answer 614ms 592.0 KiB
#10 Wrong Answer 1008ms 640.0 KiB

信息

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