/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'bool find(int, int, std::string)':
foo.cc:25:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   25 |         for (int i=0;i<b.size()-a.size()+1;i++) {
      |                      ~^~~~~~~~~~~~~~~~~~~~
foo.cc:27:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   27 |                 for (int j=0;j<a.size();j++) {
      |                              ~^~~~~~~~~
foo.cc: In function 'std::string replace(std::string&, int, int, int)':
foo.cc:48:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   48 |         for (int i=c+1;i<s.size();i++) s2+=s[i];
      |                        ~^~~~~~~~~
foo.cc: In function 'bool work(std::string)':
foo.cc:56:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   56 |         for (int i=0;i<s.size();i++) {
      |                      ~^~~~~~~~~
foo.cc:80:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   80 |         for (int k=first_pos;k<s.size();k++) {
      |                              ~^~~~~~~~~
foo.cc:82:41: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   82 |                         for (int i=k+1;i<s.size();i++) {
      |                                        ~^~~~~~~~~
foo.cc:85:57: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   85 |                                         for (int j=i+1;j<s.size();j++) {
      |                                                        ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 412.0 KiB
#2 Accepted 3ms 412.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 3ms 284.0 KiB
#5 Accepted 3ms 412.0 KiB
#6 Time Exceeded ≥1100ms ≥332.0 KiB
#7 Wrong Answer Read 0, expect 1. 65ms 412.0 KiB
#8 Time Exceeded ≥1100ms ≥356.0 KiB
#9 Time Exceeded ≥1100ms ≥412.0 KiB
#10 Time Exceeded ≥1101ms ≥284.0 KiB

信息

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