记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:9:15: 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:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<v.size();i++) ans-=(ll)(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 404.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 408.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 412.0 KiB
#7 Accepted 2ms 436.0 KiB
#8 Accepted 6ms 1.215 MiB
#9 Accepted 4ms 1.188 MiB
#10 Accepted 4ms 688.0 KiB
#11 Accepted 4ms 672.0 KiB
#12 Accepted 4ms 708.0 KiB
#13 Accepted 4ms 672.0 KiB

信息

递交者
类型
递交
题目
P1290 C. Young Man Do Not Say Five
比赛
南京师范大学2021年11月程序设计竞赛
语言
C++
递交时间
2021-11-21 16:31:39
评测时间
2021-11-21 16:31:41
评测机
分数
200
总耗时
42ms
峰值内存
1.215 MiB