/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'void solve()':
/in/foo.cc:39:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   39 |     for(int i=1;i<=n;i++)op[i]=-i;for(int i=n+1;i<=2*n;i++)op[i]=i-n;sort(op+1,op+2*n+1,cmp);
      |     ^~~
/in/foo.cc:39:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   39 |     for(int i=1;i<=n;i++)op[i]=-i;for(int i=n+1;i<=2*n;i++)op[i]=i-n;sort(op+1,op+2*n+1,cmp);
      |                                   ^~~
/in/foo.cc:54:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   54 |         for(int i=2*n;i>=1;i--)val[i]=val[i-1];ld ret=0;ld rl=pos[1]-L;ld rr=pos[1];int pl=1;int pr=2;
      |         ^~~
/in/foo.cc:54:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   54 |         for(int i=2*n;i>=1;i--)val[i]=val[i-1];ld ret=0;ld rl=pos[1]-L;ld rr=pos[1];int pl=1;int pr=2;
      |                                                ^~
# 状态 耗时 内存占用
#1 Wrong Answer 19ms 612.0 KiB
#2 Wrong Answer 1999ms 2.48 MiB
#3 Wrong Answer 2093ms 2.488 MiB

信息

递交者
类型
递交
题目
P2046 物理实验
语言
C++
递交时间
2025-06-07 00:40:08
评测时间
2025-06-07 00:40:08
评测机
分数
0
总耗时
4112ms
峰值内存
2.488 MiB