/ Vijos /

记录详情

Accepted

foo.cpp: In member function 'void Link_Cut_Tree::splay(int)':
foo.cpp:31:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
             if(!isroot(y))
               ^
foo.cpp: In function 'int main()':
foo.cpp:60:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
                 if(lct.same(1,n))ans=min(ans,e[i].a+lct.val[lct.query(1,n)]);continue;
                 ^~
foo.cpp:60:78: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
                 if(lct.same(1,n))ans=min(ans,e[i].a+lct.val[lct.query(1,n)]);continue;
                                                                              ^~~~~~~~
foo.cpp:54:31: warning: unused variable 'a' [-Wunused-variable]
         int u=e[i].u,v=e[i].v,a=e[i].a,b=e[i].b;
                               ^
foo.cpp:68:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(ans==inf)ans=-1;printf("%d\n",ans);
     ^~
foo.cpp:68:24: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if(ans==inf)ans=-1;printf("%d\n",ans);
                        ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 0ms 8.848 MiB
#2 Accepted 0ms 8.848 MiB
#3 Accepted 0ms 8.848 MiB
#4 Accepted 31ms 8.848 MiB
#5 Accepted 31ms 8.848 MiB
#6 Accepted 15ms 8.852 MiB
#7 Accepted 78ms 8.848 MiB
#8 Accepted 78ms 8.848 MiB
#9 Accepted 62ms 8.852 MiB
#10 Accepted 46ms 8.848 MiB
#11 Accepted 750ms 8.848 MiB
#12 Accepted 718ms 8.848 MiB
#13 Accepted 703ms 8.848 MiB
#14 Accepted 796ms 8.848 MiB
#15 Accepted 687ms 8.848 MiB
#16 Accepted 640ms 8.852 MiB
#17 Accepted 671ms 8.848 MiB
#18 Accepted 640ms 8.848 MiB
#19 Accepted 656ms 8.848 MiB
#20 Accepted 703ms 8.848 MiB

信息

递交者
类型
递交
题目
P1865 魔法森林
语言
C++
递交时间
2017-02-20 22:20:34
评测时间
2017-02-20 22:20:34
评测机
分数
100
总耗时
7305ms
峰值内存
8.852 MiB