/ 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:15: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:15: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:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0,y;i<g[x].size();++i)if(!vis[y=g[x][i]]){S.erase(S.find(make_pair(d[y],y)));d[y]--;S.insert(make_pair(d[y],y));}
                 ~^~~~~~~~~~~~
/in/foo.cc:29:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0,y;i<g[x].size();++i)if(!vis[y=g[x][i]]){S.erase(S.find(make_pair(d[y],y)));d[y]--;S.insert(make_pair(d[y],y));}
                 ~^~~~~~~~~~~~
/in/foo.cc:40: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:45:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  wr(A.size());putchar(' ');for(int i=0;i<A.size();++i)wr(A[i]),putchar(' ');putchar('\n');
                                        ~^~~~~~~~~
/in/foo.cc:46:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  wr(B.size());putchar(' ');for(int i=0;i<B.size();++i)wr(B[i]),putchar(' ');putchar('\n');
                                        ~^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 128ms 2.297 MiB
#2 Accepted 133ms 2.062 MiB
#3 Accepted 138ms 1.75 MiB
#4 Accepted 147ms 1.754 MiB
#5 Accepted 172ms 1.93 MiB
#6 Accepted 243ms 2.254 MiB
#7 Time Exceeded ≥253ms ≥2.129 MiB
#8 Time Exceeded ≥253ms ≥2.52 MiB
#9 Time Exceeded ≥252ms ≥2.582 MiB
#10 Time Exceeded ≥251ms ≥2.715 MiB

信息

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