/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'void dts::tr_dfs1(dts::ll, dts::ll)':
/in/foo.cc:29:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (ll i=0;i<tr[now].s.size();i++)
               ~^~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'void dts::tr_dfs2(dts::ll, dts::ll)':
/in/foo.cc:48:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (ll i=0;i<tr[now].s.size();i++)
                ~^~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'dts::ll dts::ask(dts::ll, dts::ll)':
/in/foo.cc:149:16: warning: array subscript is below array bounds [-Warray-bounds]
    ians+=st_ask(&nst[-1],1,tr[tr[i].top].id,tr[i].id);
          ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:151:16: warning: array subscript is below array bounds [-Warray-bounds]
    jans+=st_ask(&nst[-1],1,tr[tr[j].top].id,tr[j].id);
          ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:152:27: warning: array subscript is below array bounds [-Warray-bounds]
   ll ansn=ians+jans+st_ask(&nst[-1],1,tr[lcan].id,tr[i].id)+st_ask(&nst[-1],1,tr[lcan].id,tr[j].id)-st_ask(&nst[-1],1,tr[lcan].id,tr[lcan].id);
                     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:152:67: warning: array subscript is below array bounds [-Warray-bounds]
   ll ansn=ians+jans+st_ask(&nst[-1],1,tr[lcan].id,tr[i].id)+st_ask(&nst[-1],1,tr[lcan].id,tr[j].id)-st_ask(&nst[-1],1,tr[lcan].id,tr[lcan].id);
                                                             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:152:107: warning: array subscript is below array bounds [-Warray-bounds]
   ll ansn=ians+jans+st_ask(&nst[-1],1,tr[lcan].id,tr[i].id)+st_ask(&nst[-1],1,tr[lcan].id,tr[j].id)-st_ask(&nst[-1],1,tr[lcan].id,tr[lcan].id);
                                                                                                     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:153:17: warning: array subscript is below array bounds [-Warray-bounds]
   ll ansl=st_ask(&lst[-1],1,tr[lcan].dep,tr[x].dep)+st_ask(&lst[-1],1,tr[lcan].dep,tr[y].dep)-st_ask(&lst[-1],1,tr[lcan].dep,tr[lcan].dep);
           ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:153:59: warning: array subscript is below array bounds [-Warray-bounds]
   ll ansl=st_ask(&lst[-1],1,tr[lcan].dep,tr[x].dep)+st_ask(&lst[-1],1,tr[lcan].dep,tr[y].dep)-st_ask(&lst[-1],1,tr[lcan].dep,tr[lcan].dep);
                                                     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:153:101: warning: array subscript is below array bounds [-Warray-bounds]
   ll ansl=st_ask(&lst[-1],1,tr[lcan].dep,tr[x].dep)+st_ask(&lst[-1],1,tr[lcan].dep,tr[y].dep)-st_ask(&lst[-1],1,tr[lcan].dep,tr[lcan].dep);
                                                                                               ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'void dts::main()':
/in/foo.cc:181:11: warning: array subscript is below array bounds [-Warray-bounds]
   st_build(&nst[-1],1,1,cnt,&d[0]);
   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:183:11: warning: array subscript is below array bounds [-Warray-bounds]
   st_build(&lst[-1],1,1,maxdep,&d[0]);
   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:194:15: warning: array subscript is below array bounds [-Warray-bounds]
      st_update(&lst[-1],1,x,x,y);
      ~~~~~~~~~^~~~~~~~~~~~~~~~~~
/in/foo.cc:196:15: warning: array subscript is below array bounds [-Warray-bounds]
      st_update(&lst[-1],1,x,x,-y);
      ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 7ms 12.789 MiB
#2 Time Exceeded ≥1001ms ≥12.793 MiB
#3 Accepted 8ms 12.969 MiB
#4 Accepted 15ms 12.879 MiB
#5 Accepted 143ms 14.59 MiB
#6 Time Exceeded ≥1001ms ≥12.965 MiB
#7 Time Exceeded ≥1002ms ≥12.828 MiB
#8 Time Exceeded ≥1002ms ≥13.09 MiB
#9 Time Exceeded ≥1000ms ≥13.461 MiB
#10 Time Exceeded ≥1005ms ≥13.457 MiB

信息

递交者
类型
递交
题目
P1710 Mrw的工资计划
语言
C++
递交时间
2020-10-25 18:14:00
评测时间
2020-10-25 18:14:00
评测机
分数
40
总耗时
≥6187ms
峰值内存
≥14.59 MiB