记录详情

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 400.0 KiB
#2 Accepted 1ms 408.0 KiB
#3 Accepted 1ms 440.0 KiB
#4 Accepted 1ms 420.0 KiB
#5 Accepted 1ms 420.0 KiB
#6 Accepted 1ms 436.0 KiB
#7 Accepted 1ms 384.0 KiB
#8 Accepted 4ms 1.77 MiB
#9 Accepted 5ms 1.66 MiB
#10 Accepted 4ms 868.0 KiB
#11 Accepted 4ms 812.0 KiB
#12 Accepted 4ms 844.0 KiB
#13 Accepted 4ms 804.0 KiB

信息

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