记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:9:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    9 |     for(int i=0;i<s.length();i++) if(s[i]=='5') v.push_back(i);
      |                 ~^~~~~~~~~~~
foo.cc:12:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |     for(int i=1;i<v.size();i++) ans=ans-(v[i]-v[i-1])*(v[i]-v[i-1]-1)/2;
      |                 ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 3ms 384.0 KiB
#7 Accepted 6ms 384.0 KiB
#8 Accepted 8ms 1.617 MiB
#9 Accepted 8ms 1.617 MiB
#10 Accepted 5ms 768.0 KiB
#11 Accepted 5ms 768.0 KiB
#12 Accepted 9ms 768.0 KiB
#13 Accepted 5ms 768.0 KiB

信息

递交者
类型
递交
题目
P1290 C. Young Man Do Not Say Five
语言
C++
递交时间
2021-12-23 14:21:09
评测时间
2021-12-23 14:21:09
评测机
分数
200
总耗时
69ms
峰值内存
1.617 MiB