记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:8:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    8 |     for(int i = 0;i < s.size();i++)
      |                   ~~^~~~~~~~~~
foo.cc:14:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |     for(int i = 1;i < s.size();i++)
      |                   ~~^~~~~~~~~~
foo.cc:13:23: warning: '*dp[0][<unknown>]' may be used uninitialized [-Wmaybe-uninitialized]
   13 |     dp[0][(s[0]-'0')%9]++;
      |     ~~~~~~~~~~~~~~~~~~^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 44ms 11.547 MiB
#2 Accepted 19ms 4.777 MiB
#3 Accepted 28ms 7.402 MiB
#4 Accepted 36ms 9.922 MiB
#5 Accepted 4ms 540.0 KiB

信息

递交者
类型
递交
题目
P1422 1-6 游游的9的倍数
比赛
2023暑假集训7月3日训练题
语言
C++
递交时间
2023-07-03 11:00:29
评测时间
2023-07-03 11:01:03
评测机
分数
100
总耗时
134ms
峰值内存
11.547 MiB