/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int cmp(double)':
/in/foo.cc:11:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (fabs(x) < eps) return 0; return x > 0 ? 1 : -1;
  ^~
/in/foo.cc:11:31: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if (fabs(x) < eps) return 0; return x > 0 ? 1 : -1;
                               ^~~~~~
/in/foo.cc: In function 'int ConvexHull(point*, point*, int)':
/in/foo.cc:77:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (n >= 1) m--; return m;
  ^~
/in/foo.cc:77:19: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if (n >= 1) m--; return m;
                   ^~~~~~
/in/foo.cc: In function 'double Area(point*, int)':
/in/foo.cc:81:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (int i = 2; i < n; ++i)  res += Cross(ch[i] - ch[1], ch[i + 1] - ch[1]); return res / 2.0;
  ^~~
/in/foo.cc:81:79: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (int i = 2; i < n; ++i)  res += Cross(ch[i] - ch[1], ch[i + 1] - ch[1]); return res / 2.0;
                                                                               ^~~~~~
/in/foo.cc: In function 'double area(Polygon&)':
/in/foo.cc:86:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (int i = 1; i < n - 1; ++i) res += Cross(v[i] - v[0], v[i + 1] - v[0]); return res / 2.0;
  ^~~
/in/foo.cc:86:78: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (int i = 1; i < n - 1; ++i) res += Cross(v[i] - v[0], v[i + 1] - v[0]); return res / 2.0;
                                                                              ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 264.0 KiB
#2 Accepted 2ms 216.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 3ms 256.0 KiB
#6 Accepted 3ms 256.0 KiB
#7 Accepted 3ms 256.0 KiB
#8 Accepted 2ms 264.0 KiB
#9 Accepted 1ms 384.0 KiB
#10 Accepted 2ms 344.0 KiB

信息

递交者
类型
递交
题目
P1262 万剑诀
语言
C++
递交时间
2017-05-31 12:32:41
评测时间
2017-05-31 12:32:41
评测机
分数
100
总耗时
24ms
峰值内存
384.0 KiB