/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int Tree::lca(int, int)':
/in/foo.cc:23:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int d=dep[u]-dep[v],i=0;d;d>>=1,i++)if(d&1)u=fa[u][i];if(u==v)return u;
         ^~~
/in/foo.cc:23:67: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int d=dep[u]-dep[v],i=0;d;d>>=1,i++)if(d&1)u=fa[u][i];if(u==v)return u;
                                                                   ^~
/in/foo.cc:24:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int i=17;i>=0;i--)if(fa[u][i]!=fa[v][i])u=fa[u][i],v=fa[v][i];return fa[u][0];
         ^~~
/in/foo.cc:24:75: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int i=17;i>=0;i--)if(fa[u][i]!=fa[v][i])u=fa[u][i],v=fa[v][i];return fa[u][0];
                                                                           ^~~~~~
/in/foo.cc: In function 'void Tree::clear()':
/in/foo.cc:29:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int i=1;i<=k;i++)for(int j=0;j<18;j++)fa[i][j]=0;df=0;
         ^~~
/in/foo.cc:29:62: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int i=1;i<=k;i++)for(int j=0;j<18;j++)fa[i][j]=0;df=0;
                                                              ^~
/in/foo.cc: In function 'void Grph::ins(int, int, int, int)':
/in/foo.cc:41:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if(u==1)add(s,ctt+1,0),add(s,ctt+3,0);for(int i=1;i<=4;i++)tp[ctt+i]=d;//拆成4条边 
         ^~
/in/foo.cc:41:47: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
         if(u==1)add(s,ctt+1,0),add(s,ctt+3,0);for(int i=1;i<=4;i++)tp[ctt+i]=d;//拆成4条边 
                                               ^~~
/in/foo.cc: In function 'void Grph::solve()':
/in/foo.cc:69:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int i=1;i<=ctt;i++)d[i]=(1LL<<40);d[s]=0;
         ^~~
/in/foo.cc:69:47: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int i=1;i<=ctt;i++)d[i]=(1LL<<40);d[s]=0;
                                               ^
/in/foo.cc:79:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
             for(int j=0;j<(int)eib[i].size();j++)ret=min(ret,d[eib[i][j]]);printf("%lld\n",ret);
             ^~~
/in/foo.cc:79:76: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
             for(int j=0;j<(int)eib[i].size();j++)ret=min(ret,d[eib[i][j]]);printf("%lld\n",ret);
                                                                            ^~~~~~
/in/foo.cc: In function 'void Grph::clear()':
/in/foo.cc:89:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int i=1;i<=ctt+1;i++)book[i]=false;ct=0;ctt=0;
         ^~~
/in/foo.cc:89:48: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int i=1;i<=ctt+1;i++)book[i]=false;ct=0;ctt=0;
                                                ^~
# 状态 耗时 内存占用
#1 Accepted 225ms 16.387 MiB
#2 Accepted 222ms 20.547 MiB
#3 Accepted 224ms 22.059 MiB
#4 Accepted 220ms 22.07 MiB
#5 Accepted 222ms 20.008 MiB
#6 Accepted 393ms 28.176 MiB
#7 Accepted 398ms 28.363 MiB
#8 Accepted 403ms 28.664 MiB
#9 Accepted 419ms 29.152 MiB
#10 Accepted 426ms 29.754 MiB
#11 Accepted 420ms 30.168 MiB
#12 Accepted 407ms 30.836 MiB
#13 Accepted 426ms 31.453 MiB
#14 Accepted 420ms 31.961 MiB
#15 Accepted 520ms 29.742 MiB
#16 Accepted 521ms 30.34 MiB
#17 Accepted 499ms 31.211 MiB
#18 Accepted 521ms 31.551 MiB
#19 Accepted 484ms 32.023 MiB
#20 Accepted 464ms 32.613 MiB

信息

递交者
类型
递交
题目
P2022 天才黑客
语言
C++
递交时间
2020-04-06 10:40:57
评测时间
2020-04-06 10:43:06
评测机
分数
100
总耗时
7842ms
峰值内存
32.613 MiB