/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'void build()':
/in/foo.cc:61:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(register int i=0;i<=temp.size();++i)
                        ~^~~~~~~~~~~~~
/in/foo.cc:64:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    register int r=temp[(i>temp.size()-1?0:i)]-'0';
                         ~^~~~~~~~~~~~~~
/in/foo.cc:70:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if(new_string.empty()||new_string.size()>max_len)//||new_string.size()!=temp.size()+1)
                            ~~~~~~~~~~~~~~~~~^~~~~~~~
/in/foo.cc:84:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(i==temp.size())
       ~^~~~~~~~~~~~~
/in/foo.cc:86:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(register int j=i+1;j<temp.size();++j)
                           ~^~~~~~~~~~~~
/in/foo.cc:90:26: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
     register int wt=(x&y)+(x^y)<<1;
                     ~~~~~^~~~~~
/in/foo.cc:109:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(register int i=0;i<temp.size();++i)
                         ~^~~~~~~~~~~~
/in/foo.cc:113:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     register int r=temp[(i+1>temp.size()-1?0:i+1)]-'0';
                          ~~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 3.492 MiB
#2 Accepted 3ms 3.414 MiB
#3 Accepted 4ms 3.488 MiB
#4 Accepted 4ms 3.477 MiB
#5 Accepted 35ms 5.055 MiB
#6 Accepted 4ms 3.391 MiB
#7 Accepted 226ms 10.863 MiB
#8 Time Exceeded ≥1002ms ≥39.32 MiB
#9 Time Exceeded ≥1005ms ≥47.125 MiB
#10 Accepted 64ms 5.793 MiB

信息

递交者
类型
递交
题目
P1422 教主的难题
语言
C++
递交时间
2024-07-14 08:30:29
评测时间
2024-07-14 08:30:29
评测机
分数
80
总耗时
≥2354ms
峰值内存
≥47.125 MiB