/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'void dfs(int, int, int, int, int)':
/in/foo.cc:17:6: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
  if(a==0&b==0&&c==0)
     ~^~~
/in/foo.cc:28:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(x>n) x=n;
  ^~
/in/foo.cc:29:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   dfs(e[x].a-e[nowlast].a,b+e[x].b-e[nowlast].b,c+e[x].c-e[nowlast].c,x,deep+1);
   ^~~
/in/foo.cc:35:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(x>n) x=n;
  ^~
/in/foo.cc:36:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   dfs(a+e[x].a-e[nowlast].a,e[x].b-e[nowlast].b,c+e[x].c-e[nowlast].c,x,deep+1);
   ^~~
# 状态 耗时 内存占用
#1 Time Exceeded ≥1002ms ≥316.0 KiB
#2 Accepted 2ms 316.0 KiB
#3 Accepted 1ms 204.0 KiB
#4 Accepted 2ms 316.0 KiB
#5 Accepted 2ms 316.0 KiB
#6 Accepted 2ms 204.0 KiB
#7 Accepted 1ms 312.0 KiB
#8 Accepted 2ms 312.0 KiB
#9 Accepted 528ms 204.0 KiB
#10 Time Exceeded ≥1000ms ≥316.0 KiB

信息

递交者
类型
递交
题目
P1323 化工厂装箱员
语言
C++
递交时间
2018-11-06 17:54:54
评测时间
2018-11-06 17:54:54
评测机
分数
80
总耗时
≥2546ms
峰值内存
≥316.0 KiB