/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'void build()':
/in/foo.cc:58:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<temp.size()-1;++i)
               ~^~~~~~~~~~~~~~
/in/foo.cc:59:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int j=i+1;j<temp.size();++j)
                  ~^~~~~~~~~~~~
/in/foo.cc:63:17: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
     int wt=(x&y)+(x^y)<<1;
            ~~~~~^~~~~~
/in/foo.cc:80:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int i=0;i<temp.size();++i)
                ~^~~~~~~~~~~~
/in/foo.cc:84:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     int r=temp[(i+1>temp.size()-1?0:i+1)]-'0';
                 ~~~^~~~~~~~~~~~~~
/in/foo.cc:105:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<temp.size();++i)
               ~^~~~~~~~~~~~
/in/foo.cc:108:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    int r=temp[(i+1>temp.size()-1?0:i+1)]-'0';
                ~~~^~~~~~~~~~~~~~
/in/foo.cc:114:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if(new_string.empty()||new_string.size()>max_len||i==0&&x==0)//||new_string.size()!=temp.size()+1)
                            ~~~~~~~~~~~~~~~~~^~~~~~~~
/in/foo.cc:114:59: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if(new_string.empty()||new_string.size()>max_len||i==0&&x==0)//||new_string.size()!=temp.size()+1)
                                                       ~~~~^~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 380.0 KiB
#2 Accepted 1ms 412.0 KiB
#3 Wrong Answer 2ms 480.0 KiB
#4 Wrong Answer 1ms 456.0 KiB
#5 Time Exceeded ≥1001ms ≥18.809 MiB
#6 Accepted 2ms 348.0 KiB
#7 Time Exceeded ≥1000ms ≥23.355 MiB
#8 Time Exceeded ≥1001ms ≥34.254 MiB
#9 Time Exceeded ≥1003ms ≥40.898 MiB
#10 Time Exceeded ≥1004ms ≥7.926 MiB

信息

递交者
类型
递交
题目
P1422 教主的难题
语言
C++
递交时间
2024-07-12 15:27:39
评测时间
2024-07-12 15:27:39
评测机
分数
30
总耗时
≥5021ms
峰值内存
≥40.898 MiB