Accepted
foo.cc: In function 'int main()': foo.cc:9:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<s.length();i++) if(s[i]=='5') v.push_back(i); ~^~~~~~~~~~~ foo.cc:12:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<v.size();i++) ans-=(v[i]-v[i-1])*(v[i]-v[i-1]-1)/2; // 减去两个'5'之间的子串个数。 ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1290 C. Young Man Do Not Say Five
- 语言
- C++
- 递交时间
- 2021-11-22 19:55:39
- 评测时间
- 2021-11-22 19:55:39
- 评测机
- 分数
- 200
- 总耗时
- 40ms
- 峰值内存
- 1.773 MiB