/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int i=1;i<=n;i++) scanf("%d",&a[i]),c[i]=a[i]; sort(c+1,c+n+1);
   ^~~
/in/foo.cc:12:54: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(int i=1;i<=n;i++) scanf("%d",&a[i]),c[i]=a[i]; sort(c+1,c+n+1);
                                                      ^~~~
/in/foo.cc:14:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int i=1;i<=n;i++) scanf("%d",&b[i]),c[i]=b[i]; sort(c+1,c+n+1);
   ^~~
/in/foo.cc:14:54: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(int i=1;i<=n;i++) scanf("%d",&b[i]),c[i]=b[i]; sort(c+1,c+n+1);
                                                      ^~~~
/in/foo.cc:16:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int i=1;i<=n;i++) pos[a[i]]=i; int s=0;
   ^~~
/in/foo.cc:16:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(int i=1;i<=n;i++) pos[a[i]]=i; int s=0;
                                      ^~~
# 状态 耗时 内存占用
#1 Accepted 14ms 8.363 MiB
#2 Accepted 10ms 8.211 MiB
#3 Accepted 8ms 8.25 MiB
#4 Accepted 11ms 8.305 MiB
#5 Accepted 9ms 8.352 MiB
#6 Accepted 15ms 8.371 MiB
#7 Accepted 19ms 8.25 MiB
#8 Accepted 34ms 10.457 MiB
#9 Accepted 89ms 8.492 MiB
#10 Accepted 151ms 8.75 MiB

信息

递交者
类型
递交
题目
P1842 火柴排队
语言
C++
递交时间
2018-01-10 15:06:14
评测时间
2018-01-10 15:06:14
评测机
分数
100
总耗时
365ms
峰值内存
10.457 MiB