/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'bool find(int, int, std::string)':
foo.cc:26:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   26 |         for (int i=0;i<b.size()-a.size()+1;i++) {
      |                      ~^~~~~~~~~~~~~~~~~~~~
foo.cc:28:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |                 for (int j=0;j<a.size();j++) {
      |                              ~^~~~~~~~~
foo.cc: In function 'std::string replace(std::string&, int, int, int)':
foo.cc:49:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   49 |         for (int i=c+1;i<s.size();i++) s2+=s[i];
      |                        ~^~~~~~~~~
foo.cc: In function 'std::string find_Cs(std::string&, int)':
foo.cc:54:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   54 |         for (int i=pos;i<s.size();i++) {
      |                        ~^~~~~~~~~
foo.cc: In function 'bool work(std::string)':
foo.cc:73:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   73 |         for (int i=0;i<s.size();i++) {
      |                      ~^~~~~~~~~
foo.cc:112:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  112 |         for (int k=first_pos;k<s.size();k++) {
      |                              ~^~~~~~~~~
foo.cc:115:41: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  115 |                         for (int i=k+1;i<s.size();i++) {
      |                                        ~^~~~~~~~~
foo.cc:120:46: warning: unused variable 'f' [-Wunused-variable]
  120 |                                         bool f=0;
      |                                              ^
foo.cc: In function 'int main()':
foo.cc:135:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  135 |     for (int i=0;i<S.size();i++) {
      |                  ~^~~~~~~~~
foo.cc:136:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  136 |         for (int j=1;i+j-1<S.size();j++) {
      |                      ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 412.0 KiB
#2 Accepted 5ms 412.0 KiB
#3 Accepted 5ms 412.0 KiB
#4 Accepted 4ms 412.0 KiB
#5 Accepted 4ms 412.0 KiB
#6 Time Exceeded ≥1100ms ≥512.0 KiB
#7 Accepted 20ms 412.0 KiB
#8 Time Exceeded ≥1100ms ≥412.0 KiB
#9 Time Exceeded ≥1099ms ≥412.0 KiB
#10 Time Exceeded ≥1100ms ≥508.0 KiB

信息

递交者
类型
递交
题目
P1031 奶牛加密术
语言
C++
递交时间
2023-08-11 18:19:08
评测时间
2023-08-11 18:19:08
评测机
分数
60
总耗时
≥4447ms
峰值内存
≥512.0 KiB