/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'void clear(int)':
/in/foo.cc:15:130: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
 {lmax[pos] = rmax[pos] = smax[pos] = sum[pos] = key[pos] = size[pos] = ch[pos][1] = ch[pos][0] = fa[pos] = turn[pos] = same[pos] = cha[pos] = 0;}
                                                                                                                        ~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'void rotate(int)':
/in/foo.cc:92:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(posgra)ch[posgra][ch[posgra][1] == posfa] = pos;fa[pos] = posgra;
  ^~
/in/foo.cc:92:53: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(posgra)ch[posgra][ch[posgra][1] == posfa] = pos;fa[pos] = posgra;
                                                     ^~
/in/foo.cc: In function 'void splay(int, int)':
/in/foo.cc:101:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(!tar)root = pos;return;
  ^~
/in/foo.cc:101:21: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(!tar)root = pos;return;
                     ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:117:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i = 0;i < strlen(read);i++)tmp += read[i];
                 ~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 11ms 20.352 MiB
#2 Wrong Answer 13ms 20.25 MiB
#3 Time Exceeded ≥3006ms ≥24.25 MiB
#4 Accepted 47ms 22.852 MiB
#5 Accepted 129ms 24.125 MiB
#6 Time Exceeded ≥3005ms ≥24.32 MiB
#7 Time Exceeded ≥3006ms ≥24.137 MiB
#8 Time Exceeded ≥3006ms ≥24.184 MiB
#9 Time Exceeded ≥3005ms ≥24.25 MiB
#10 Time Exceeded ≥3006ms ≥24.188 MiB

信息

递交者
类型
递交
题目
P1835 维护数列
语言
C++
递交时间
2017-07-14 16:55:08
评测时间
2017-07-14 16:55:08
评测机
分数
30
总耗时
≥18240ms
峰值内存
≥24.32 MiB