/ 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 351ms 153.242 MiB
#2 Wrong Answer Read 277, expect 196. 444ms 153.242 MiB
#3 Time Exceeded ≥2111ms ≥153.242 MiB
#4 Time Exceeded ≥2117ms ≥153.242 MiB
#5 Time Exceeded ≥2118ms ≥153.242 MiB
#6 Time Exceeded ≥2115ms ≥153.242 MiB
#7 Time Exceeded ≥2114ms ≥153.242 MiB
#8 Time Exceeded ≥2115ms ≥153.242 MiB
#9 Time Exceeded ≥2112ms ≥153.242 MiB
#10 Time Exceeded ≥2115ms ≥153.242 MiB

信息

递交者
类型
递交
题目
P1670 三角计数
语言
C++
递交时间
2022-01-09 15:53:21
评测时间
2022-01-09 15:53:21
评测机
分数
10
总耗时
≥17715ms
峰值内存
≥153.242 MiB