/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int LCA(int, int)':
/in/foo.cc:37:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=lim;i>=0;i--)
  ^~~
/in/foo.cc:40:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   return fa[x][0];
   ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:80:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
   if(fa[fx][0] && (dis[x]-dis[fa[fx][0]])*2==tmp)
     ^
# 状态 耗时 内存占用
#1 Accepted 4ms 4.25 MiB
#2 Accepted 7ms 6.25 MiB
#3 Accepted 10ms 6.25 MiB
#4 Accepted 42ms 6.77 MiB
#5 Accepted 58ms 7.102 MiB
#6 Accepted 125ms 12.031 MiB
#7 Accepted 132ms 12.074 MiB
#8 Accepted 132ms 11.945 MiB
#9 Accepted 106ms 11.793 MiB
#10 Accepted 110ms 11.223 MiB

信息

递交者
类型
递交
题目
P1935 不可思议的清晨
语言
C++
递交时间
2017-08-05 12:03:23
评测时间
2017-08-05 12:03:23
评测机
分数
100
总耗时
730ms
峰值内存
12.074 MiB