/ TYWZ /

记录详情

Accepted

/in/foo.cc: In function 'int Hash_Table::h(const Point&)':
/in/foo.cc:10:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 if(ans<0)ans+=HASH_SIZE; return ans; } Point ht[HASH_SIZE];bool state[HASH_SIZE];int TOT; 
 ^~
/in/foo.cc:10:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
 if(ans<0)ans+=HASH_SIZE; return ans; } Point ht[HASH_SIZE];bool state[HASH_SIZE];int TOT; 
                          ^~~~~~
/in/foo.cc: In function 'int Hash_Table::hash(const Point&)':
/in/foo.cc:12:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 if((at+=step)>=HASH_SIZE) at-=HASH_SIZE; if(!state[at]){ ht[at]=p; state[at]=true; return 0; } 
 ^~
/in/foo.cc:12:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
 if((at+=step)>=HASH_SIZE) at-=HASH_SIZE; if(!state[at]){ ht[at]=p; state[at]=true; return 0; } 
                                          ^~
/in/foo.cc:11:40: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 int hash(const Point& p){ int at=h(p); for(;state[at]&&ht[at]!=p;TOT++) 
                                        ^~~
/in/foo.cc:12:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
 if((at+=step)>=HASH_SIZE) at-=HASH_SIZE; if(!state[at]){ ht[at]=p; state[at]=true; return 0; } 
                                          ^~
# 状态 耗时 内存占用
#1 Accepted 208ms 72.504 MiB
#2 Accepted 238ms 72.262 MiB
#3 Accepted 302ms 72.254 MiB
#4 Accepted 257ms 72.082 MiB
#5 Accepted 286ms 72.121 MiB
#6 Accepted 258ms 72.094 MiB
#7 Accepted 362ms 201.273 MiB
#8 Accepted 360ms 200.203 MiB
#9 Accepted 289ms 201.227 MiB
#10 Accepted 328ms 200.805 MiB

信息

递交者
类型
递交
比赛
2019年6月15日高一(第二学期)模拟测试(九)---补题目通道
语言
C++
递交时间
2019-06-18 16:03:14
评测时间
2019-06-18 16:03:14
评测机
分数
100
总耗时
2894ms
峰值内存
201.273 MiB