/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'bool check(long long int, std::vector<Army>, int)':
/in/foo.cc:146:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if (remain.size() > map.NodeTable[1].army)    //如果在根节点的军队树小于没有封锁的子树数,那么失败
      ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:151:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0, j = 0, remainsize = remain.size(); i < root.size(); i++)
                                                     ~~^~~~~~~~~~~~~
/in/foo.cc:154:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int k = j; k < remain.size(); k++)
                   ~~^~~~~~~~~~~~~~~
/in/foo.cc:177:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (root.size() - i - 1 < remainsize)
       ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 972.0 KiB
#2 Accepted 3ms 988.0 KiB
#3 Accepted 2ms 1.066 MiB
#4 Accepted 3ms 1.141 MiB
#5 Accepted 4ms 1.121 MiB
#6 Accepted 33ms 1.867 MiB
#7 Accepted 19ms 1.547 MiB
#8 Accepted 136ms 3.742 MiB
#9 Time Exceeded ≥2001ms ≥9.5 MiB
#10 Accepted 1ms 204.0 KiB

信息

递交者
类型
递交
题目
P1783 疫情控制
语言
C++
递交时间
2020-12-28 16:06:17
评测时间
2020-12-28 16:06:17
评测机
分数
90
总耗时
≥2209ms
峰值内存
≥9.5 MiB