Accepted

/in/foo.cc: In function 'int ls(std::__cxx11::string, int)':
/in/foo.cc:5:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if(s.size()<k)
     ~~~~~~~~^~
/in/foo.cc:11:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while(si<s.size()&&f[s[si]]>=k)
        ~~^~~~~~~~~
/in/foo.cc:13:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if(si==s.size())
     ~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 340.0 KiB
#2 Accepted 1ms 408.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Accepted 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1107 最长重复子串k
语言
C++
递交时间
2024-08-25 15:25:22
评测时间
2024-08-25 15:25:22
评测机
分数
100
总耗时
5ms
峰值内存
408.0 KiB