/ Vijos /

记录详情

Accepted

/in/foo.cc: In member function 'void global_balanced_tree::modify(int, const int&)':
/in/foo.cc:87:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   87 |         for(int i=0;i<m;i++)we[u][i]=0;we[u][w1]=1;fwt(we[u].f,1);lt[u]*=we[u];udw(u);
      |         ^~~
/in/foo.cc:87:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   87 |         for(int i=0;i<m;i++)we[u][i]=0;we[u][w1]=1;fwt(we[u].f,1);lt[u]*=we[u];udw(u);
      |                                        ^~
/in/foo.cc:90:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   90 |         for(int i=0;i<m;i++)ans[i]=mul[rot][1][1][i];fwt(ans,5004);
      |         ^~~
/in/foo.cc:90:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   90 |         for(int i=0;i<m;i++)ans[i]=mul[rot][1][1][i];fwt(ans,5004);
      |                                                      ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:100:34: warning: comparison of integer expressions of different signedness: 'int' and 'const uit' {aka 'const unsigned int'} [-Wsign-compare]
  100 |     iv[0]=1;iv[1]=1;for(int i=2;i<mod;i++)iv[i]=(mod-mod/i)*iv[mod%i]%mod;
      |                                 ~^~~~
/in/foo.cc:105:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  105 |     for(int i=0;i<m;i++)ans[i]=gbt.mul[rot][1][1][i];fwt(ans,5004);scanf("%d",&q);
      |     ^~~
/in/foo.cc:105:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  105 |     for(int i=0;i<m;i++)ans[i]=gbt.mul[rot][1][1][i];fwt(ans,5004);scanf("%d",&q);
      |                                                      ^~~
/in/foo.cc: In member function 'int global_balanced_tree::subbuild(int, int)':
/in/foo.cc:73:5: warning: control reaches end of non-void function [-Wreturn-type]
   73 |     }
      |     ^
# 状态 耗时 内存占用
#1 Accepted 15ms 11.609 MiB
#2 Accepted 15ms 11.762 MiB
#3 Accepted 16ms 11.594 MiB
#4 Accepted 15ms 11.719 MiB
#5 Accepted 403ms 166.395 MiB
#6 Accepted 405ms 166.395 MiB
#7 Accepted 407ms 166.398 MiB
#8 Accepted 408ms 166.402 MiB
#9 Accepted 793ms 166.406 MiB
#10 Accepted 800ms 166.406 MiB
#11 Accepted 370ms 171.461 MiB
#12 Accepted 372ms 171.449 MiB
#13 Accepted 370ms 171.539 MiB
#14 Accepted 243ms 169.465 MiB
#15 Accepted 242ms 169.617 MiB
#16 Accepted 750ms 168.984 MiB
#17 Accepted 745ms 168.996 MiB
#18 Accepted 477ms 169.551 MiB
#19 Accepted 480ms 169.668 MiB
#20 Accepted 476ms 169.562 MiB

信息

递交者
类型
递交
题目
P2021 切树游戏
语言
C++
递交时间
2025-06-05 21:53:43
评测时间
2025-06-05 21:53:43
评测机
分数
100
总耗时
7813ms
峰值内存
171.539 MiB