/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:14:19: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 #define fo(i,a,b) for(R int (i)=(a);(i)<=(b);++(i))
                   ^
/in/foo.cc:42:2: note: in expansion of macro 'fo'
  fo(i,1,n*2)if(sum[i])ans+=sum[i]*(sum[i]-1)/2;printf("%lld\n",ans);
  ^~
/in/foo.cc:42:48: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  fo(i,1,n*2)if(sum[i])ans+=sum[i]*(sum[i]-1)/2;printf("%lld\n",ans);
                                                ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB
#2 Accepted 4ms 256.0 KiB
#3 Accepted 4ms 332.0 KiB
#4 Wrong Answer 3ms 376.0 KiB
#5 Wrong Answer 3ms 372.0 KiB

信息

递交者
类型
递交
题目
P1697 平面几何
语言
C++
递交时间
2017-11-07 18:54:34
评测时间
2017-11-07 18:54:34
评测机
分数
60
总耗时
20ms
峰值内存
384.0 KiB