/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:21:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(maxb==0)break;--d[maxb];
   ^~
/in/foo.cc:21:20: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   if(maxb==0)break;--d[maxb];
                    ^~
/in/foo.cc:24:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=1;i<=n;++i)ans+=f[i]*sum[i];printf("%d",ans);
  ^~~
/in/foo.cc:24:36: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(i=1;i<=n;++i)ans+=f[i]*sum[i];printf("%d",ans);
                                    ^~~~~~
/in/foo.cc:8:18: warning: unused variable 'j' [-Wunused-variable]
  A n,m,k,ans=0,i,j,t,a1,b,max1,maxb;;
                  ^
# 状态 耗时 内存占用
#1 Accepted 1ms 204.0 KiB
#2 Accepted 1ms 304.0 KiB
#3 Accepted 1ms 300.0 KiB
#4 Accepted 1ms 204.0 KiB
#5 Accepted 1ms 204.0 KiB
#6 Accepted 1ms 208.0 KiB
#7 Accepted 1ms 204.0 KiB
#8 Accepted 1ms 208.0 KiB
#9 Accepted 1ms 204.0 KiB
#10 Accepted 1ms 208.0 KiB
#11 Accepted 1ms 204.0 KiB
#12 Accepted 1ms 208.0 KiB
#13 Accepted 4ms 204.0 KiB
#14 Accepted 8ms 320.0 KiB
#15 Accepted 14ms 320.0 KiB
#16 Accepted 37ms 316.0 KiB
#17 Accepted 56ms 316.0 KiB
#18 Accepted 68ms 316.0 KiB
#19 Accepted 87ms 320.0 KiB
#20 Accepted 98ms 320.0 KiB

信息

递交者
类型
递交
题目
P1741 观光公交
语言
C++
递交时间
2019-04-02 11:11:34
评测时间
2019-04-02 11:11:34
评测机
分数
100
总耗时
393ms
峰值内存
320.0 KiB