记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:10:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |         for (int i=0;i<a.size();i++) ans=(ans+a[i]-'0')%9;
      |                      ~^~~~~~~~~
foo.cc:11:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |         for (int i=0;i<b.size();i++) ans=(ans+b[i]-'0')%9;
      |                      ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 4ms 412.0 KiB
#5 Accepted 3ms 332.0 KiB
#6 Accepted 3ms 284.0 KiB
#7 Accepted 4ms 412.0 KiB
#8 Accepted 3ms 412.0 KiB
#9 Accepted 4ms 412.0 KiB
#10 Accepted 3ms 284.0 KiB
#11 Accepted 3ms 412.0 KiB
#12 Accepted 4ms 412.0 KiB
#13 Accepted 13ms 668.0 KiB
#14 Accepted 13ms 700.0 KiB
#15 Accepted 12ms 584.0 KiB
#16 Accepted 12ms 668.0 KiB
#17 Accepted 12ms 668.0 KiB
#18 Accepted 13ms 668.0 KiB
#19 Accepted 13ms 668.0 KiB
#20 Accepted 13ms 668.0 KiB

信息

递交者
类型
递交
题目
P1511 Problem 2D. A+B,但是人生苦短...
比赛
2023秋 悬赏令第二周
语言
C++
递交时间
2023-10-17 12:35:07
评测时间
2023-10-17 12:35:07
评测机
分数
100
总耗时
152ms
峰值内存
700.0 KiB