/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'void line_gr::get_line(int*, int*, int*, int, int*, int*, int*, int&)':
/in/foo.cc:53:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int i=1;i<=ct+1;i++)al[i]=0;ct=0;
         ^~~
/in/foo.cc:53:41: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int i=1;i<=ct+1;i++)al[i]=0;ct=0;
                                         ^~
/in/foo.cc: In function 'll line_gr::calcline4(int*, int)':
/in/foo.cc:74:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int i=1;i<=ct+1;i++)d1[i]=0;for(int i=1;i<=ct;i++)d2[i]=0;return ret;
         ^~~
/in/foo.cc:74:41: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int i=1;i<=ct+1;i++)d1[i]=0;for(int i=1;i<=ct;i++)d2[i]=0;return ret;
                                         ^~~
/in/foo.cc: In function 'll line_gr::subcalc(tree1&, int)':
/in/foo.cc:78:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int i=1;i<=ct[0]+1;i++)al[0][i]=0;ct[0]=0;
         ^~~
/in/foo.cc:78:47: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int i=1;i<=ct[0]+1;i++)al[0][i]=0;ct[0]=0;
                                               ^~
/in/foo.cc: In function 'void dfs(int, int)':
/in/foo.cc:102:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if(ntr.siz[rt]==1)continue;if(son<siz[sub[rt]]){dp[u][rt]=0;continue;}
         ^~
/in/foo.cc:102:36: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
         if(ntr.siz[rt]==1)continue;if(son<siz[sub[rt]]){dp[u][rt]=0;continue;}
                                    ^~
/in/foo.cc:103:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for(int k=sub[rt];k;k=(k-1)&sub[rt])tdp[k]=0;tdp[0]=1;
         ^~~
/in/foo.cc:103:54: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         for(int k=sub[rt];k;k=(k-1)&sub[rt])tdp[k]=0;tdp[0]=1;
                                                      ^~~
/in/foo.cc: In function 'void solve(int, int, int, int)':
/in/foo.cc:124:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if(cur!=tar)return;tp=0;ntr.clr();
         ^~
/in/foo.cc:124:28: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
         if(cur!=tar)return;tp=0;ntr.clr();
                            ^~
/in/foo.cc: In function 'll calcline3()':
/in/foo.cc:138:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=2;i<=ct;i+=2)(ans+=(ll)(d[v[i]]-1)*(d[v[i-1]]-1))%=mod;return ans;
     ^~~
/in/foo.cc:138:70: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for(int i=2;i<=ct;i+=2)(ans+=(ll)(d[v[i]]-1)*(d[v[i-1]]-1))%=mod;return ans;
                                                                      ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 5ms 4.965 MiB
#2 Accepted 5ms 4.996 MiB
#3 Accepted 6ms 6.996 MiB
#4 Accepted 20ms 16.941 MiB
#5 Accepted 21ms 15.891 MiB
#6 Accepted 37ms 15.91 MiB
#7 Accepted 90ms 19.094 MiB
#8 Accepted 274ms 18.246 MiB
#9 Time Exceeded ≥3000ms ≥175.145 MiB
#10 Time Exceeded ≥3003ms ≥177.188 MiB

信息

递交者
类型
递交
题目
P2041 线图
语言
C++
递交时间
2020-04-30 18:35:15
评测时间
2020-04-30 18:35:15
评测机
分数
80
总耗时
≥6464ms
峰值内存
≥177.188 MiB