/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'void work()':
/in/foo.cc:23:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 for(k=1;k<=n;k++)if(b[k]==0)x++;else if(b[k]==-1)y++;if(x<=m&&x+y>=m)chk();}}}
 ^~~
/in/foo.cc:23:54: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
 for(k=1;k<=n;k++)if(b[k]==0)x++;else if(b[k]==-1)y++;if(x<=m&&x+y>=m)chk();}}}
                                                      ^~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 360.0 KiB
#2 Wrong Answer 1ms 400.0 KiB
#3 Wrong Answer 1ms 380.0 KiB
#4 Wrong Answer 1ms 376.0 KiB
#5 Wrong Answer 1ms 376.0 KiB
#6 Wrong Answer 1ms 340.0 KiB
#7 Wrong Answer 1ms 380.0 KiB
#8 Accepted 1ms 452.0 KiB
#9 Wrong Answer 1ms 356.0 KiB
#10 Wrong Answer 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1106 侦探推理
语言
C++
递交时间
2022-02-04 18:54:21
评测时间
2022-02-04 18:54:21
评测机
分数
10
总耗时
15ms
峰值内存
452.0 KiB