/ Vijos /

记录详情

Time Exceeded

foo.cc: In function ‘void build()’:
foo.cc:63:30: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   63 |                 for(int i=0;i<temp.size()-1;++i)
      |                             ~^~~~~~~~~~~~~~
foo.cc:64:40: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   64 |                         for(int j=i+1;j<temp.size();++j)
      |                                       ~^~~~~~~~~~~~
foo.cc:68:45: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
   68 |                                 int wt=(x&y)+(x^y)<<1;
      |                                        ~~~~~^~~~~~
foo.cc:86:38: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   86 |                         for(int i=0;i<temp.size();++i)
      |                                     ~^~~~~~~~~~~~
foo.cc:90:48: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   90 |                                 int r=temp[(i+1>temp.size()-1?0:i+1)]-'0';
      |                                             ~~~^~~~~~~~~~~~~~
foo.cc:111:30: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  111 |                 for(int i=0;i<=temp.size();++i)
      |                             ~^~~~~~~~~~~~~
foo.cc:114:38: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  114 |                         int r=temp[(i>temp.size()-1?0:i)]-'0';
      |                                     ~^~~~~~~~~~~~~~
foo.cc:120:73: warning: comparison of integer expressions of different signedness: ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} and ‘long long int’ [-Wsign-compare]
  120 |                                 if(new_string.empty()||new_string.size()>max_len)//||new_string.size()!=temp.size()+1)
      |                                                        ~~~~~~~~~~~~~~~~~^~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 5ms 3.523 MiB
#2 Wrong Answer Read 143, expect 230. 6ms 3.562 MiB
#3 Wrong Answer Read 0, expect 26. 6ms 3.523 MiB
#4 Wrong Answer Read 359, expect 630. 6ms 3.523 MiB
#5 Accepted 5ms 3.566 MiB
#6 Wrong Answer Read 8242, expect 8705. 53ms 4.996 MiB
#7 Wrong Answer Read 23018, expect 26643. 265ms 12.418 MiB
#8 Wrong Answer Read 10331, expect 12077. 96ms 6.141 MiB
#9 Time Exceeded ≥1045ms ≥42.496 MiB
#10 Time Exceeded ≥1069ms ≥54.703 MiB

信息

递交者
类型
递交
题目
P1422 教主的难题
语言
C++
递交时间
2024-07-14 08:13:45
评测时间
2024-07-14 11:30:32
评测机
分数
20
总耗时
≥2561ms
峰值内存
≥54.703 MiB