/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:35:26: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
   35 |     for(i=1;i<=n;i++)if(i-1&1)Manacher(i);
      |                         ~^~
foo.cc:36:26: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
   36 |     for(i=1;i<=m;i++)if(i-1&1)manacher(i);
      |                         ~^~
foo.cc:39:11: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
   39 |     if(i+j-1&1)
      |        ~~~^~
foo.cc:45:81: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
   45 |         while((Min>=k&&HR[u][j]>=k&&HR[d][j]>=k&&LR[l][i]>=k&&LR[r][i]>=k)||(k+i-1&1))
      |                                                                              ~~~^~
foo.cc:53:22: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
   53 |         if(j&1)Ans+=k-2>>1;
      |                     ~^~
foo.cc:54:20: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
   54 |         else Ans+=k-1>>1;
      |                   ~^~
foo.cc:31:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   31 |     scanf("%d%d",&n,&m);
      |     ~~~~~^~~~~~~~~~~~~~
foo.cc:33:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   33 |     for(j=1;j<=m;j++)scanf("%d",&G[i<<1][j<<1]);
      |                      ~~~~~^~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 1.0 MiB
#2 Accepted 10ms 1.75 MiB
#3 Accepted 9ms 1.625 MiB
#4 Accepted 120ms 15.371 MiB
#5 Accepted 166ms 20.242 MiB
#6 Accepted 222ms 26.492 MiB
#7 Accepted 229ms 29.742 MiB
#8 Accepted 307ms 34.867 MiB
#9 Accepted 295ms 34.992 MiB

信息

递交者
类型
递交
题目
P1556 对称的正方形
语言
C++
递交时间
2021-12-25 17:25:19
评测时间
2021-12-25 17:25:19
评测机
分数
100
总耗时
1365ms
峰值内存
34.992 MiB