/ dsgsjk /

记录详情

Accepted

/in/foo.cc: In function 'void Inv(std::vector<int>&, std::vector<int>&, int)':
/in/foo.cc:32:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(;l<=n+n-2;l<<=1,L++); for(rint i=0;i<l;i++) rev[i]=rev[i>>1]>>1|(i&1)<<(L-1);
  ^~~
/in/foo.cc:32:28: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(;l<=n+n-2;l<<=1,L++); for(rint i=0;i<l;i++) rev[i]=rev[i>>1]>>1|(i&1)<<(L-1);
                            ^~~
/in/foo.cc:33:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(rint i=0;i<n;i++) A[i]=f[i],B[i]=g[i]; ntt(A,l,1); ntt(B,l,1);
  ^~~
/in/foo.cc:33:45: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(rint i=0;i<n;i++) A[i]=f[i],B[i]=g[i]; ntt(A,l,1); ntt(B,l,1);
                                             ^~~
/in/foo.cc:34:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(rint i=0;i<l;i++) A[i]=mns(add(A[i],A[i]),(ll)A[i]*A[i]%mod*B[i]%mod); ntt(A,l,0);
  ^~~
/in/foo.cc:34:77: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(rint i=0;i<l;i++) A[i]=mns(add(A[i],A[i]),(ll)A[i]*A[i]%mod*B[i]%mod); ntt(A,l,0);
                                                                             ^~~
/in/foo.cc: In function 'void solve(int, int, std::vector<int>&, std::vector<int>&)':
/in/foo.cc:42:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(rint i=0;i<f.size();i++) A[i]=f[i]; ntt(A,len,1);
               ~^~~~~~~~~
/in/foo.cc:42:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(rint i=0;i<f.size();i++) A[i]=f[i]; ntt(A,len,1);
  ^~~
/in/foo.cc:42:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(rint i=0;i<f.size();i++) A[i]=f[i]; ntt(A,len,1);
                                          ^~~
/in/foo.cc:43:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(rint i=0;i<g.size();i++) B[i]=g[i]; ntt(B,len,1);
               ~^~~~~~~~~
/in/foo.cc:43:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(rint i=0;i<g.size();i++) B[i]=g[i]; ntt(B,len,1);
  ^~~
/in/foo.cc:43:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(rint i=0;i<g.size();i++) B[i]=g[i]; ntt(B,len,1);
                                          ^~~
/in/foo.cc:44:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(rint i=0;i<p.size();i++) C[i]=p[i]; ntt(C,len,1);
               ~^~~~~~~~~
/in/foo.cc:44:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(rint i=0;i<p.size();i++) C[i]=p[i]; ntt(C,len,1);
  ^~~
/in/foo.cc:44:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(rint i=0;i<p.size();i++) C[i]=p[i]; ntt(C,len,1);
                                          ^~~
/in/foo.cc:45:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(rint i=0;i<q.size();i++) D[i]=q[i]; ntt(D,len,1);
               ~^~~~~~~~~
/in/foo.cc:45:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(rint i=0;i<q.size();i++) D[i]=q[i]; ntt(D,len,1);
  ^~~
/in/foo.cc:45:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(rint i=0;i<q.size();i++) D[i]=q[i]; ntt(D,len,1);
                                          ^~~
/in/foo.cc:51:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  {if(i<f.size())f[i]=A[i];if(i<g.size())g[i]=B[i];}
      ~^~~~~~~~~
/in/foo.cc:51:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  {if(i<f.size())f[i]=A[i];if(i<g.size())g[i]=B[i];}
                              ~^~~~~~~~~
/in/foo.cc: In function 'void down(int)':
/in/foo.cc:56:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(a[o].l!=a[o].r) a[o+o].tag=a[o+o+1].tag=a[o].tag; a[o].tag=-1;
  ^~
/in/foo.cc:56:55: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(a[o].l!=a[o].r) a[o+o].tag=a[o+o+1].tag=a[o].tag; a[o].tag=-1;
                                                       ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:101:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(rint i=0;i<f.size();i++) A[i]=f[i]; ntt(A,len,1);
               ~^~~~~~~~~
/in/foo.cc:101:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(rint i=0;i<f.size();i++) A[i]=f[i]; ntt(A,len,1);
  ^~~
/in/foo.cc:101:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(rint i=0;i<f.size();i++) A[i]=f[i]; ntt(A,len,1);
                                          ^~~
/in/foo.cc:102:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(rint i=0;i<h.size();i++) B[i]=h[i]; ntt(B,len,1);
               ~^~~~~~~~~
/in/foo.cc:102:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(rint i=0;i<h.size();i++) B[i]=h[i]; ntt(B,len,1);
  ^~~
/in/foo.cc:102:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(rint i=0;i<h.size();i++) B[i]=h[i]; ntt(B,len,1);
                                          ^~~
/in/foo.cc:103:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(rint i=0;i<len;i++) A[i]=(ll)A[i]*B[i]%mod; ntt(A,len,0);
  ^~~
/in/foo.cc:103:50: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(rint i=0;i<len;i++) A[i]=(ll)A[i]*B[i]%mod; ntt(A,len,0);
                                                  ^~~
/in/foo.cc:104:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(rint i=0;i<=1e5;i++) ans[i]=(ll)A[i]*qpow(n,mod-2)%mod; build(1,m,1);
  ^~~
/in/foo.cc:104:62: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(rint i=0;i<=1e5;i++) ans[i]=(ll)A[i]*qpow(n,mod-2)%mod; build(1,m,1);
                                                              ^~~~~
# 状态 耗时 内存占用
#1 Accepted 930ms 16.77 MiB
#2 Accepted 955ms 26.844 MiB
#3 Accepted 970ms 16.469 MiB
#4 Accepted 959ms 26.383 MiB
#5 Accepted 981ms 16.605 MiB
#6 Accepted 998ms 26.445 MiB
#7 Accepted 1080ms 16.449 MiB
#8 Accepted 1101ms 26.375 MiB
#9 Accepted 1012ms 17.559 MiB
#10 Accepted 1020ms 22.512 MiB
#11 Accepted 164ms 10.719 MiB
#12 Accepted 162ms 14.684 MiB
#13 Accepted 154ms 10.703 MiB
#14 Accepted 158ms 14.668 MiB
#15 Accepted 165ms 10.656 MiB
#16 Accepted 154ms 14.715 MiB
#17 Accepted 159ms 12.582 MiB
#18 Accepted 153ms 12.754 MiB
#19 Accepted 154ms 12.73 MiB
#20 Accepted 162ms 14.09 MiB
#21 Accepted 165ms 10.754 MiB
#22 Accepted 164ms 14.73 MiB
#23 Accepted 170ms 10.793 MiB
#24 Accepted 157ms 14.773 MiB
#25 Accepted 163ms 10.762 MiB
#26 Accepted 156ms 14.77 MiB
#27 Accepted 162ms 10.816 MiB
#28 Accepted 161ms 14.75 MiB
#29 Accepted 162ms 10.777 MiB
#30 Accepted 162ms 14.797 MiB
#31 Accepted 303ms 15.129 MiB
#32 Accepted 307ms 19.168 MiB
#33 Accepted 298ms 15.09 MiB
#34 Accepted 310ms 19.164 MiB
#35 Accepted 311ms 15.094 MiB
#36 Accepted 320ms 19.164 MiB
#37 Accepted 312ms 15.09 MiB
#38 Accepted 312ms 19.16 MiB
#39 Accepted 305ms 15.133 MiB
#40 Accepted 308ms 19.16 MiB
#41 Accepted 996ms 18.535 MiB
#42 Accepted 969ms 22.523 MiB
#43 Accepted 935ms 18.438 MiB
#44 Accepted 960ms 22.445 MiB
#45 Accepted 993ms 18.48 MiB
#46 Accepted 983ms 22.445 MiB
#47 Accepted 994ms 18.457 MiB
#48 Accepted 989ms 22.516 MiB
#49 Accepted 994ms 18.535 MiB
#50 Accepted 975ms 22.527 MiB

信息

递交者
类型
递交
题目
P1000 语法入门题
语言
C++
递交时间
2019-03-14 19:37:02
评测时间
2019-03-14 19:37:02
评测机
分数
100
总耗时
26113ms
峰值内存
26.844 MiB