当前位置:网站首页>2022 Henan Mengxin League game 2: Henan University of technology L - HPU
2022 Henan Mengxin League game 2: Henan University of technology L - HPU
2022-07-20 21:51:00 【WA_ automata】
L - HPU
How many are found through direct traversal H P U that will do . How many are found through direct traversal HPU that will do . How many are found through direct traversal HPU that will do .
Please note that , s t r i n g Medium s . s i z e ( ) It's an unsigned integer , Should be converted to i n t type . Please note that ,string Medium s.size() It's an unsigned integer , Should be converted to int type . Please note that ,string Medium s.size() It's an unsigned integer , Should be converted to int type .
Time complexity : O ( n ) Time complexity :O(n) Time complexity :O(n)
#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;cin>>s;
int ans=0;
for(int i=0;i<(int)s.size()-2;i++)
if(s[i]=='H'&&s[i+1]=='P'&&s[i+2]=='U')
ans++;
cout<<ans;
return 0;
}
边栏推荐
- 2022.07.19 Logu p6588 『 jroi-1 』 vector
- Gson简单使用
- Notez les titres des 13es championnats provinciaux intégrés de la coupe Blue Bridge
- 金仓数据库 KingbaseES SQL 语言参考手册 (3.8. 数据库对象、3.9. 数据库对象名称和限定符)
- LVGL 8.2 Roller
- Data Governance Research Report - data element equity allocation path (2022), 50 Pages pdf
- LVGL 8.2 Span
- 金仓数据库 KingbaseES SQL 语言参考手册 (3.2. 数据类型比较规则)
- 手撕快速排序
- 【刷题记录】15.三数之和
猜你喜欢
随机推荐
指针数组跟数组指针的简单范例
Spire.Office For Net 7.7.2 以及新闻
LVGL 8.2 Span
金仓数据库 KingbaseES SQL 语言参考手册 (3.2. 数据类型比较规则)
Apipost签约中国电信!携手加速企业数字化变革
CLion编译和使用动态库
CSAPP:cap2
LVGL 8.2 Spinbox
动态内存相关笔记
如何使用IDE工具HHDBCS,在Oracle数据库中创建一个包含1000条模拟数据的数据表,并将该
Vmware解决无法识别USB的问题
English grammar_ Possessive pronoun
【golang从入门到实践】石头剪刀布游戏
Is it safe for Dongguan securities to buy shares and open an account?
LVGL Switch & Table
在信息技术下的创客教育新型研究
Summary on sorting and de duplication of sets
走进创客教育课程实践的真实情境
English sentence pattern reference exclusive Edition - subject clause - predicative clause
docker安装MySQL5.7