/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'std::string sub(std::string, std::string)':
foo.cc:31:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
   31 |     while(!na[--lmax]&&lmax>0)  ;lmax++;
      |     ^~~~~
foo.cc:31:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   31 |     while(!na[--lmax]&&lmax>0)  ;lmax++;
      |                                  ^~~~
foo.cc: In function 'std::string div(std::string, int)':
foo.cc:53:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   53 |     for(int i=0;i<a.size();i++)
      |                 ~^~~~~~~~~
foo.cc:59:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   59 |     for(int i=0;i<r.size();i++)
      |                 ~^~~~~~~~~
foo.cc: In function 'int mod(std::string, int)':
foo.cc:66:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   66 |     for(int i=0;i<a.size();i++) d=(d*10+(a[i]-'0'))%b;//求出余数
      |                 ~^~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 296ms 153.203 MiB
#2 Wrong Answer Read 277, expect 196. 500ms 153.27 MiB
#3 Time Exceeded ≥2108ms ≥153.223 MiB
#4 Time Exceeded ≥2108ms ≥153.27 MiB
#5 Time Exceeded ≥2109ms ≥153.176 MiB
#6 Time Exceeded ≥2107ms ≥153.148 MiB
#7 Time Exceeded ≥2117ms ≥153.273 MiB
#8 Time Exceeded ≥2108ms ≥153.215 MiB
#9 Time Exceeded ≥2106ms ≥153.145 MiB
#10 Time Exceeded ≥2109ms ≥153.27 MiB

信息

递交者
类型
递交
题目
P1670 三角计数
语言
C++
递交时间
2023-08-18 10:17:04
评测时间
2023-08-18 10:17:04
评测机
分数
10
总耗时
≥17675ms
峰值内存
≥153.273 MiB