/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:18:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=1,j=N;i<j;i++,j--)
     ^~~
/in/foo.cc:20:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(int i=1;i<=N;i++){
  ^~~
/in/foo.cc:14:9: warning: array subscript is above array bounds [-Warray-bounds]
   f[i][3]=min(f[i-1][1],min(f[i-1][2],f[i-1][3]))+(a[i]!=3);  
   ~~~~~~^
/in/foo.cc:23:9: warning: array subscript is above array bounds [-Warray-bounds]
   f[i][3]=min(f[i-1][1],min(f[i-1][2],f[i-1][3]))+(a[i]!=3);  
   ~~~~~~^
# 状态 耗时 内存占用
#1 Accepted 2ms 372.0 KiB
#2 Accepted 2ms 360.0 KiB
#3 Accepted 2ms 380.0 KiB
#4 Accepted 3ms 376.0 KiB
#5 Accepted 2ms 380.0 KiB
#6 Accepted 2ms 336.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 2ms 444.0 KiB
#9 Accepted 5ms 568.0 KiB
#10 Accepted 11ms 884.0 KiB

信息

递交者
类型
递交
题目
P2363 麻烦的聚餐
语言
C++
递交时间
2021-06-03 11:57:32
评测时间
2021-06-03 11:57:32
评测机
分数
100
总耗时
37ms
峰值内存
884.0 KiB