/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int dfs(std::__cxx11::string, long long int)':
/in/foo.cc:20:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<str.size();i+=2)
              ~^~~~~~~~~~~
/in/foo.cc:21:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(i<str.size()-1&&str[i]==str[i+1]){fg=0;break;}
      ~^~~~~~~~~~~~~
/in/foo.cc:23:40: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  if(fg)res+=dfs(nxt,str.size()&1?k>>1:k+1>>1);
                                       ~^~
/in/foo.cc:25:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<str.size();i+=2)
              ~^~~~~~~~~~~
/in/foo.cc:26:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(i<str.size()-1&&str[i]==str[i+1]){fg=0;break;}
      ~^~~~~~~~~~~~~
/in/foo.cc:28:35: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  if(fg)res+=dfs(nxt,str.size()&1?k+1>>1:k>>1);
                                  ~^~
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 344.0 KiB
#2 Accepted 2ms 344.0 KiB
#3 Accepted 4ms 476.0 KiB
#4 Accepted 5ms 488.0 KiB
#5 Accepted 32ms 2.5 MiB
#6 Accepted 33ms 2.535 MiB
#7 Accepted 33ms 2.516 MiB
#8 Accepted 34ms 2.535 MiB
#9 Accepted 33ms 2.516 MiB
#10 Accepted 32ms 2.457 MiB

信息

递交者
类型
递交
题目
P2056 连续子序列
语言
C++
递交时间
2019-05-09 21:52:35
评测时间
2019-05-09 21:52:35
评测机
分数
90
总耗时
213ms
峰值内存
2.535 MiB