/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'long long int calc(int)':
/in/foo.cc:2:20: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 #define rep(i,a,b) for(int i=a;i<=b;i++)
                    ^
/in/foo.cc:11:2: note: in expansion of macro 'rep'
  rep(i,1,m) L=s[i],R=t[i],ans+=(cnt[R]-cnt[L-1])*(vs[R]-vs[L-1]);return ans;
  ^~~
/in/foo.cc:11:66: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  rep(i,1,m) L=s[i],R=t[i],ans+=(cnt[R]-cnt[L-1])*(vs[R]-vs[L-1]);return ans;
                                                                  ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 5ms 328.0 KiB
#2 Accepted 4ms 324.0 KiB
#3 Accepted 2ms 332.0 KiB
#4 Accepted 5ms 336.0 KiB
#5 Accepted 4ms 228.0 KiB
#6 Accepted 4ms 308.0 KiB
#7 Accepted 3ms 332.0 KiB
#8 Accepted 5ms 388.0 KiB
#9 Accepted 5ms 344.0 KiB
#10 Accepted 7ms 436.0 KiB
#11 Accepted 6ms 532.0 KiB
#12 Accepted 6ms 480.0 KiB
#13 Accepted 8ms 504.0 KiB
#14 Accepted 8ms 520.0 KiB
#15 Accepted 28ms 1.656 MiB
#16 Accepted 43ms 2.617 MiB
#17 Accepted 56ms 2.996 MiB
#18 Accepted 74ms 4.887 MiB
#19 Accepted 84ms 4.336 MiB
#20 Accepted 108ms 5.586 MiB

信息

递交者
类型
递交
题目
P1740 聪明的质检员
语言
C++
递交时间
2019-02-16 22:00:31
评测时间
2019-02-16 22:00:31
评测机
分数
100
总耗时
476ms
峰值内存
5.586 MiB