/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'void read(int&)':
/in/foo.cc:11:11: warning: variable 'f' set but not used [-Wunused-but-set-variable]
  x=0;bool f=false;char ch=getchar();
           ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:20:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while (pt<=n) a[++pt]=getchar()-'0';L=n;
  ^~~~~
/in/foo.cc:20:38: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  while (pt<=n) a[++pt]=getchar()-'0';L=n;
                                      ^
/in/foo.cc:27:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for (int i=L+1;i>p+1;i--) a[i]=a[i-1];a[p+1]=c;L++;
    ^~~
/in/foo.cc:27:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    for (int i=L+1;i>p+1;i--) a[i]=a[i-1];a[p+1]=c;L++;
                                          ^
/in/foo.cc:31:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    for (int i=p;i<=L;i++) a[i]=a[i+1];L--;
    ^~~
/in/foo.cc:31:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    for (int i=p;i<=L;i++) a[i]=a[i+1];L--;
                                       ^
# 状态 耗时 内存占用
#1 Accepted 3ms 312.0 KiB
#2 Accepted 3ms 312.0 KiB
#3 Accepted 9ms 324.0 KiB
#4 Accepted 1705ms 696.0 KiB
#5 Accepted 6157ms 1.055 MiB
#6 Time Exceeded ≥10012ms ≥1.555 MiB
#7 Time Exceeded ≥10013ms ≥3.18 MiB
#8 Time Exceeded ≥10014ms ≥5.18 MiB
#9 Time Exceeded ≥10008ms ≥3.445 MiB
#10 Time Exceeded ≥10010ms ≥2.555 MiB

信息

递交者
类型
递交
题目
P2027 佳佳的字符串
比赛
金秋重聚模拟赛
语言
C++
递交时间
2017-10-07 21:45:11
评测时间
2017-10-07 21:45:12
评测机
分数
50
总耗时
≥57938ms
峰值内存
≥5.18 MiB