/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void left(int)':
/in/foo.cc:43:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
     if (noroot(y))
        ^
/in/foo.cc:40:6: warning: unused variable 'flag' [-Wunused-variable]
  int flag; 
      ^~~~
/in/foo.cc: In function 'void right(int)':
/in/foo.cc:56:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
     if (noroot(y))
        ^
/in/foo.cc:53:6: warning: unused variable 'flag' [-Wunused-variable]
  int flag;
      ^~~~
/in/foo.cc: In function 'void splay(int)':
/in/foo.cc:83:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
  if (noroot(y))
     ^
/in/foo.cc:82:19: warning: unused variable 'k' [-Wunused-variable]
  int y=tree[x].fa,k=tree[y].fa;
                   ^
/in/foo.cc:73:6: warning: unused variable 'tot' [-Wunused-variable]
  int tot=0,y=x;
      ^~~
# 状态 耗时 内存占用
#1 Accepted 6ms 8.359 MiB
#2 Accepted 10ms 8.34 MiB
#3 Accepted 19ms 8.25 MiB
#4 Accepted 29ms 10.367 MiB
#5 Accepted 15ms 8.352 MiB
#6 Accepted 12ms 8.25 MiB
#7 Accepted 31ms 8.375 MiB
#8 Accepted 37ms 10.355 MiB
#9 Accepted 29ms 10.328 MiB
#10 Accepted 25ms 10.426 MiB
#11 Accepted 320ms 16.676 MiB
#12 Accepted 353ms 14.75 MiB
#13 Accepted 360ms 14.676 MiB
#14 Accepted 365ms 14.805 MiB
#15 Accepted 267ms 14.301 MiB
#16 Accepted 223ms 14.68 MiB
#17 Accepted 257ms 16.676 MiB
#18 Accepted 247ms 14.68 MiB
#19 Accepted 184ms 14.68 MiB
#20 Accepted 189ms 14.488 MiB

信息

递交者
类型
递交
题目
P1865 魔法森林
语言
C++
递交时间
2018-04-05 09:41:04
评测时间
2018-04-05 09:41:04
评测机
分数
100
总耗时
2983ms
峰值内存
16.676 MiB