/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'int toInt(std::string)':
foo.cc:24:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |  while (i < t.size())
      |         ~~^~~~~~~~~~
foo.cc: In function 'void getne(std::string, int*)':
foo.cc:63:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   63 |  while (i < p.size())
      |         ~~^~~~~~~~~~
foo.cc: In function 'll kmp(std::string, std::string, int*)':
foo.cc:81:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   81 |   while (i < len && post < p.size() && s[i] == p[post]) i++, post++;
      |                     ~~~~~^~~~~~~~~~
foo.cc:83:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   83 |   if (post == p.size()) sum++;
      |       ~~~~~^~~~~~~~~~~
foo.cc: At global scope:
foo.cc:105:20: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
  105 | const int N = 1<<16+7;
      |                  ~~^~
foo.cc: In function 'void deal()':
foo.cc:121:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  121 |  scanf("%d", &n);
      |  ~~~~~^~~~~~~~~~
foo.cc:126:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  126 |    scanf("%lld", *(w + i) + j);
      |    ~~~~~^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1134ms ≥383.617 MiB
#2 Time Exceeded ≥1134ms ≥377.242 MiB
#3 Time Exceeded ≥1142ms ≥468.742 MiB
#4 Time Exceeded ≥1140ms ≥476.242 MiB
#5 Time Exceeded ≥1076ms ≥512.016 MiB
#6 Time Exceeded ≥1079ms ≥512.016 MiB
#7 Time Exceeded ≥1130ms ≥512.016 MiB
#8 Time Exceeded ≥1087ms ≥512.016 MiB
#9 Time Exceeded ≥1084ms ≥512.016 MiB
#10 Time Exceeded ≥1069ms ≥512.016 MiB
#11 Time Exceeded ≥1116ms ≥512.016 MiB
#12 Time Exceeded ≥1109ms ≥512.016 MiB
#13 Time Exceeded ≥1138ms ≥512.016 MiB
#14 Time Exceeded ≥1135ms ≥512.016 MiB
#15 Time Exceeded ≥1133ms ≥512.016 MiB
#16 Time Exceeded ≥1143ms ≥512.016 MiB
#17 Time Exceeded ≥1237ms ≥512.016 MiB
#18 Time Exceeded ≥1222ms ≥512.016 MiB
#19 Time Exceeded ≥1127ms ≥512.016 MiB
#20 Time Exceeded ≥1130ms ≥512.016 MiB

信息

递交者
类型
递交
题目
P1456 最小总代价
语言
C++
递交时间
2022-03-30 10:36:03
评测时间
2022-03-30 10:36:03
评测机
分数
0
总耗时
≥22573ms
峰值内存
≥512.016 MiB