/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void print(int)':
/in/foo.cc:81:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while(sr[++C]=z[Z],--Z);sr[++C]='\n';
  ^~~~~
/in/foo.cc:81:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while(sr[++C]=z[Z],--Z);sr[++C]='\n';
                          ^~
/in/foo.cc: In function 'int getans(int, int)':
/in/foo.cc:125:16: warning: unused variable 'l' [-Wunused-variable]
  int ans=inf,k,l=0,maxk=min(i,j);
                ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:153:21: warning: array subscript has type 'char' [-Wchar-subscripts]
    int add=ad[a[m-1]][k]+ad[b[m-1]][k];
                     ^
/in/foo.cc:153:35: warning: array subscript has type 'char' [-Wchar-subscripts]
    int add=ad[a[m-1]][k]+ad[b[m-1]][k];
                                   ^
/in/foo.cc:154:21: warning: array subscript has type 'char' [-Wchar-subscripts]
    int del=de[a[m-1]][k]+de[b[m-1]][k];
                     ^
/in/foo.cc:154:35: warning: array subscript has type 'char' [-Wchar-subscripts]
    int del=de[a[m-1]][k]+de[b[m-1]][k];
                                   ^
/in/foo.cc:137:6: warning: unused variable 'm' [-Wunused-variable]
  int m;
      ^
# 状态 耗时 内存占用
#1 Accepted 3ms 4.461 MiB
#2 Accepted 1ms 216.0 KiB
#3 Accepted 1ms 348.0 KiB
#4 Accepted 1ms 2.34 MiB
#5 Accepted 1ms 356.0 KiB
#6 Accepted 1ms 348.0 KiB
#7 Accepted 1ms 480.0 KiB
#8 Accepted 2ms 604.0 KiB
#9 Accepted 2ms 612.0 KiB
#10 Accepted 2ms 608.0 KiB

信息

递交者
类型
递交
题目
P1854 火柴游戏
语言
C++
递交时间
2019-07-14 15:43:09
评测时间
2019-07-14 15:43:09
评测机
分数
100
总耗时
21ms
峰值内存
4.461 MiB