记录详情

Wrong Answer

foo.cc: In function 'std::string Add(std::string&, std::string&)':
foo.cc:37:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   37 |   if(i < x.length())
      |      ~~^~~~~~~~~~~~
foo.cc:39:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   39 |   if(i < y.length())
      |      ~~^~~~~~~~~~~~
foo.cc: In function 'std::string Mul(std::string&, std::string&)':
foo.cc:70:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   70 |  for(int i=0; i<x.length(); i++)
      |               ~^~~~~~~~~~~
foo.cc:71:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   71 |   for(int j=0; j<y.length(); j++)
      |                ~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 9ms 896.0 KiB
#2 Accepted 20ms 768.0 KiB
#3 Wrong Answer Read 1174970706075403..., expect 8281797452201455.... 22ms 768.0 KiB
#4 Wrong Answer Read 1746900150408824..., expect 1746900150408824.... 9ms 768.0 KiB
#5 Wrong Answer Read 1000000000000000..., expect 1000000000000000.... 7ms 768.0 KiB

信息

递交者
类型
递交
题目
A11-3 高精度整数的加法
比赛
2022暑期青少年社团(训练赛)
语言
C++
递交时间
2022-08-07 20:43:31
评测时间
2022-08-07 20:44:42
评测机
分数
40
总耗时
69ms
峰值内存
896.0 KiB