/ Vijos /

记录详情

Accepted

/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 Accepted 2ms 328.0 KiB
#2 Accepted 2ms 308.0 KiB
#3 Accepted 3ms 472.0 KiB
#4 Accepted 4ms 492.0 KiB
#5 Accepted 30ms 2.5 MiB
#6 Accepted 31ms 2.469 MiB
#7 Accepted 28ms 2.492 MiB
#8 Accepted 29ms 2.492 MiB
#9 Accepted 30ms 2.52 MiB
#10 Accepted 30ms 2.465 MiB

信息

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