/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'long long int sum(int, int, int)':
/in/foo.cc:19: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:19: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:21: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:21: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:25: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:25: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 Wrong Answer 51ms 10.375 MiB
#2 Accepted 63ms 12.25 MiB
#3 Wrong Answer 54ms 10.25 MiB
#4 Wrong Answer 52ms 10.371 MiB
#5 Wrong Answer 53ms 10.375 MiB
#6 Wrong Answer 61ms 10.254 MiB
#7 Wrong Answer 66ms 12.375 MiB
#8 Wrong Answer 69ms 10.523 MiB
#9 Wrong Answer 17ms 10.5 MiB
#10 Wrong Answer 20ms 10.473 MiB

信息

递交者
类型
递交
题目
P1404 遭遇战
语言
C++
递交时间
2017-12-29 15:31:33
评测时间
2017-12-29 15:31:33
评测机
分数
10
总耗时
512ms
峰值内存
12.375 MiB