/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'bool check(int)':
/in/foo.cc:27:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(ddg[u&65535]!=u>>16){
      ~~~~~~~~~~~~^~~~~~~
/in/foo.cc:31:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if((u>>16)>=mid)break;
      ~~~~~~~^~~~~
/in/foo.cc:41:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(ddg[u&65535]!=u>>16)continue;
      ~~~~~~~~~~~~^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:58:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
    const int mid=l+r>>1;
                  ~^~
/in/foo.cc:62:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
   printf("%d",q1.size());
                        ^
/in/foo.cc:63:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int i:q1)printf(" %d",i);putchar('\n');
   ^~~
/in/foo.cc:63:32: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(int i:q1)printf(" %d",i);putchar('\n');
                                ^~~~~~~
/in/foo.cc:75:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
   printf("%d",q1.size());
                        ^
/in/foo.cc:76:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int i:q1)printf(" %d",i);putchar('\n');
   ^~~
/in/foo.cc:76:32: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(int i:q1)printf(" %d",i);putchar('\n');
                                ^~~~~~~
# 状态 耗时 内存占用
#1 Time Exceeded ≥255ms ≥3.02 MiB
#2 Time Exceeded ≥254ms ≥3.004 MiB
#3 Time Exceeded ≥253ms ≥2.941 MiB
#4 Time Exceeded ≥255ms ≥3.008 MiB
#5 Time Exceeded ≥255ms ≥3.008 MiB
#6 Time Exceeded ≥254ms ≥3.031 MiB
#7 Time Exceeded ≥254ms ≥3.004 MiB
#8 Time Exceeded ≥251ms ≥2.957 MiB
#9 Time Exceeded ≥252ms ≥3.035 MiB
#10 Time Exceeded ≥253ms ≥2.984 MiB

信息

递交者
类型
递交
题目
P2054 热闹的聚会与尴尬的聚会
语言
C++
递交时间
2019-05-13 21:08:31
评测时间
2019-05-13 21:08:31
评测机
分数
0
总耗时
≥2540ms
峰值内存
≥3.035 MiB