/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'long long int sum(int, int, int)':
/in/foo.cc:20:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (x<=b[k]&&y>=c[k]) return d[k]; int mid=(b[k]+c[k])>>1;
  ^~
/in/foo.cc:20:37: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if (x<=b[k]&&y>=c[k]) return d[k]; int mid=(b[k]+c[k])>>1;
                                     ^~~
/in/foo.cc:22:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
  else if (x<=mid&&y>mid) return min(sum(k*2,x,mid),sum(k*2+1,mid+1,y)); return 0;
  ^~~~
/in/foo.cc:22:73: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
  else if (x<=mid&&y>mid) return min(sum(k*2,x,mid),sum(k*2+1,mid+1,y)); return 0;
                                                                         ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:26:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (int i=1;i<=n;i++) scanf("%d%d%d",&a[i].x,&a[i].y,&a[i].d); build(1,0,86399); 
  ^~~
/in/foo.cc:26:66: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (int i=1;i<=n;i++) scanf("%d%d%d",&a[i].x,&a[i].y,&a[i].d); build(1,0,86399); 
                                                                  ^~~~~
# 状态 耗时 内存占用
#1 Accepted 14ms 10.324 MiB
#2 Accepted 11ms 10.25 MiB
#3 Wrong Answer 12ms 12.348 MiB
#4 Accepted 9ms 10.363 MiB
#5 Accepted 9ms 10.359 MiB
#6 Accepted 16ms 10.375 MiB
#7 Accepted 22ms 10.469 MiB
#8 Accepted 34ms 10.375 MiB
#9 Accepted 27ms 10.465 MiB
#10 Accepted 24ms 12.477 MiB

信息

递交者
类型
递交
题目
P1404 遭遇战
语言
C++
递交时间
2017-12-29 15:32:21
评测时间
2017-12-29 15:32:21
评测机
分数
90
总耗时
182ms
峰值内存
12.477 MiB