/ Vijos /

记录详情

Accepted

/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 10ms 10.254 MiB
#2 Accepted 7ms 10.25 MiB
#3 Accepted 6ms 10.355 MiB
#4 Accepted 9ms 10.25 MiB
#5 Accepted 14ms 12.344 MiB
#6 Accepted 13ms 10.375 MiB
#7 Accepted 24ms 10.395 MiB
#8 Accepted 23ms 10.375 MiB
#9 Accepted 15ms 12.465 MiB
#10 Accepted 20ms 12.457 MiB

信息

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