/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int rd()':
/in/foo.cc:9:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while(isdigit(c))x=x*10+c-48,c=getchar();return x;
  ^~~~~
/in/foo.cc:9:43: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while(isdigit(c))x=x*10+c-48,c=getchar();return x;
                                           ^~~~~~
/in/foo.cc: In function 'void sol()':
/in/foo.cc:14:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=1;i<=n;i++)e[i]=0,g[i].clear();S.clear();
  ^~~
/in/foo.cc:14:43: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(int i=1;i<=n;i++)e[i]=0,g[i].clear();S.clear();
                                           ^
/in/foo.cc:21:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<g[x].size();i++)
               ~^~~~~~~~~~~~
/in/foo.cc:33:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<g[x].size();i++)
               ~^~~~~~~~~~~~
/in/foo.cc:48:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int j=0;j<g[x].size();j++)if(vis[g[x][j]]){f=0;break;}
                ~^~~~~~~~~~~~
/in/foo.cc:53:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  printf("%d ",(int)A.size());for(int i=0;i<A.size();i++)printf("%d ",A[i]);puts("");
                                          ~^~~~~~~~~
/in/foo.cc:54:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  printf("%d ",(int)B.size());for(int i=0;i<B.size();i++)printf("%d ",B[i]);puts("");
                                          ~^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 152ms 2.07 MiB
#2 Accepted 157ms 2.066 MiB
#3 Accepted 140ms 1.75 MiB
#4 Accepted 156ms 1.754 MiB
#5 Accepted 210ms 1.938 MiB
#6 Time Exceeded ≥250ms ≥2.277 MiB
#7 Time Exceeded ≥251ms ≥2.195 MiB
#8 Time Exceeded ≥252ms ≥2.555 MiB
#9 Time Exceeded ≥251ms ≥2.535 MiB
#10 Time Exceeded ≥251ms ≥2.715 MiB

信息

递交者
类型
递交
题目
P2054 热闹的聚会与尴尬的聚会
语言
C++
递交时间
2019-05-15 09:25:20
评测时间
2019-05-15 09:25:20
评测机
分数
50
总耗时
≥2075ms
峰值内存
≥2.715 MiB