/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'void addNum(std::vector<Num>&, Num&)':
foo.cc:129:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Num>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  129 |  for(int i=0;i<v.size();i++) {
      |              ~^~~~~~~~~
foo.cc: In function 'Num& getGoodOne(int, int)':
foo.cc:167:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Num>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  167 |  for(int i=0;i<vi.size();i++) {
      |              ~^~~~~~~~~~
foo.cc: In function 'void preCalc()':
foo.cc:223:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Num>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  223 |    for(int k=0;k<preBuild.size();k++) {
      |                ~^~~~~~~~~~~~~~~~
foo.cc:224:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Num>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  224 |     for(int k2=k+1;k2<preBuild.size();k2++) {
      |                    ~~^~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:241:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  241 |  scanf("%d", &n);
      |  ~~~~~^~~~~~~~~~
foo.cc:251:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  251 |  for(int i=0;i<3;i++) scanf("%d%d", &p[i], &q[i]);
      |                       ~~~~~^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1099ms ≥6.75 MiB
#2 Time Exceeded ≥1100ms ≥768.0 KiB
#3 Accepted 488ms 768.0 KiB
#4 Time Exceeded ≥1101ms ≥1.0 MiB
#5 Time Exceeded ≥1098ms ≥2.0 MiB
#6 Time Exceeded ≥1099ms ≥2.875 MiB
#7 Time Exceeded ≥1100ms ≥3.5 MiB
#8 Time Exceeded ≥1102ms ≥5.125 MiB
#9 Time Exceeded ≥1101ms ≥6.125 MiB
#10 Time Exceeded ≥1098ms ≥6.75 MiB

信息

递交者
类型
递交
题目
P1854 火柴游戏
语言
C++
递交时间
2022-07-25 16:19:56
评测时间
2022-07-25 16:19:56
评测机
分数
10
总耗时
≥10391ms
峰值内存
≥6.75 MiB