/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'void build()':
/in/foo.cc:63:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<temp.size()-1;++i)
               ~^~~~~~~~~~~~~~
/in/foo.cc:64:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int j=i+1;j<temp.size();++j)
                  ~^~~~~~~~~~~~
/in/foo.cc:68:17: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
     int wt=(x&y)+(x^y)<<1;
            ~~~~~^~~~~~
/in/foo.cc:86:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int i=0;i<temp.size();++i)
                ~^~~~~~~~~~~~
/in/foo.cc:90: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:111:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<=temp.size();++i)
               ~^~~~~~~~~~~~~
/in/foo.cc:114:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    int r=temp[(i>temp.size()-1?0:i)]-'0';
                ~^~~~~~~~~~~~~~
/in/foo.cc:120: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)
                            ~~~~~~~~~~~~~~~~~^~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 3.48 MiB
#2 Wrong Answer 3ms 3.488 MiB
#3 Wrong Answer 3ms 3.516 MiB
#4 Wrong Answer 3ms 3.473 MiB
#5 Wrong Answer 33ms 5.109 MiB
#6 Accepted 3ms 3.512 MiB
#7 Wrong Answer 250ms 12.277 MiB
#8 Time Exceeded ≥1000ms ≥42.469 MiB
#9 Time Exceeded ≥1005ms ≥54.742 MiB
#10 Wrong Answer 69ms 6.105 MiB

信息

递交者
类型
递交
题目
P1422 教主的难题
语言
C++
递交时间
2024-07-14 08:15:39
评测时间
2024-07-14 08:15:39
评测机
分数
20
总耗时
≥2376ms
峰值内存
≥54.742 MiB