记录详情

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)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 404.0 KiB
#2 Accepted 1ms 444.0 KiB
#3 Accepted 1ms 416.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB
#6 Accepted 1ms 384.0 KiB
#7 Accepted 1ms 408.0 KiB
#8 Accepted 4ms 1.754 MiB
#9 Accepted 5ms 1.703 MiB
#10 Accepted 3ms 884.0 KiB
#11 Accepted 4ms 812.0 KiB
#12 Accepted 4ms 812.0 KiB
#13 Accepted 4ms 808.0 KiB

信息

递交者
类型
递交
题目
P1290 C. Young Man Do Not Say Five
语言
C++
递交时间
2021-11-22 22:02:35
评测时间
2021-11-22 22:02:35
评测机
分数
200
总耗时
39ms
峰值内存
1.754 MiB