/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int getint()':
/in/foo.cc:23:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(c=='-') q=1,c=getchar(); while (c>='0'&&c<='9') w=w*10+c-'0',c=getchar(); return q?-w:w;
     ^~
/in/foo.cc:23:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if(c=='-') q=1,c=getchar(); while (c>='0'&&c<='9') w=w*10+c-'0',c=getchar(); return q?-w:w;
                                 ^~~~~
/in/foo.cc: In function 'void work()':
/in/foo.cc:28:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=1;i<=n;i++) Q[0][i]=getint(); sort(Q[0]+1,Q[0]+n+1,cmp); tag=0; head[0]=head[1]=head[2]=1; tail[0]=n; tail[1]=tail[2]=0;
     ^~~
/in/foo.cc:28:45: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
     for(int i=1;i<=n;i++) Q[0][i]=getint(); sort(Q[0]+1,Q[0]+n+1,cmp); tag=0; head[0]=head[1]=head[2]=1; tail[0]=n; tail[1]=tail[2]=0;
                                             ^~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 208.0 KiB
#2 Accepted 2ms 312.0 KiB
#3 Accepted 29ms 588.0 KiB
#4 Accepted 2ms 4.195 MiB
#5 Accepted 2ms 4.188 MiB
#6 Accepted 2ms 4.301 MiB
#7 Accepted 3ms 4.203 MiB
#8 Accepted 25ms 6.465 MiB
#9 Accepted 36ms 4.605 MiB
#10 Accepted 91ms 18.367 MiB
#11 Accepted 107ms 21.566 MiB
#12 Accepted 144ms 29.07 MiB
#13 Accepted 185ms 41.375 MiB
#14 Accepted 275ms 56.359 MiB
#15 Accepted 30ms 4.371 MiB
#16 Accepted 35ms 4.391 MiB
#17 Accepted 31ms 4.652 MiB
#18 Accepted 45ms 6.562 MiB
#19 Accepted 144ms 30.859 MiB
#20 Accepted 239ms 55.953 MiB

信息

递交者
类型
递交
题目
P2007 蚯蚓
语言
C++
递交时间
2018-11-08 20:09:31
评测时间
2018-11-08 20:09:31
评测机
分数
100
总耗时
1440ms
峰值内存
56.359 MiB