当前位置:网站首页>3048. Number of words
3048. Number of words
2022-07-02 02:54:00 【Python ml】
#include <iostream>
using namespace std;
int main() {
int n;
cin>>n;
getchar();
for(int i=0;i<n;i++){
string s,t,temp;
getline(cin,s);
getline(cin,t);
int cnt=0;
for(int j=0;j<s.length();j++){
if(isalnum(s[j]))
temp+=s[j];
if(!isalnum(s[j])||j==s.length()-1){
if(temp==t) cnt++;
temp="";
}
}
printf("case #%d:\n%d\n",i,cnt);
}
return 0;
}
边栏推荐
- Provincial election + noi Part IV graph theory
- 寻找重复数[抽象二分/快慢指针/二进制枚举]
- Kibana操控ES
- 2022低压电工考试题模拟考试题库模拟考试平台操作
- How to run oddish successfully from 0?
- What is the difference between an intermediate human resource manager and an intermediate economist (human resources direction)?
- Build a modern data architecture on the cloud with Amazon AppFlow, Amazon lake formation and Amazon redshift
- [learn C and fly] 3day Chapter 2 program in C language (exercise 2.3 calculate piecewise functions)
- Golang configure export goprivate to pull private library code
- [question 008: what is UV in unity?]
猜你喜欢

Build a modern data architecture on the cloud with Amazon AppFlow, Amazon lake formation and Amazon redshift

Remote connection to MySQL under windows and Linux system
![[learn C and fly] 3day Chapter 2 program in C language (exercise 2.3 calculate piecewise functions)](/img/8e/a86a9724251718d98ce172a6a96e53.png)
[learn C and fly] 3day Chapter 2 program in C language (exercise 2.3 calculate piecewise functions)

Leetcode question brushing (10) - sequential question brushing 46 to 50

LFM信号加噪、时频分析、滤波
![[staff] diacritical mark (ascending sign | descending sign B | double ascending sign x | double descending sign BB)](/img/96/8c4baa1dd8e35e2cab67461e7c447b.jpg)
[staff] diacritical mark (ascending sign | descending sign B | double ascending sign x | double descending sign BB)

Summary of some experiences in the process of R & D platform splitting

After marriage

2022-2028 global soft capsule manufacturing machine industry research and trend analysis report

2022-2028 global aluminum beverage can coating industry research and trend analysis report
随机推荐
Oracle creates a user with read-only permission in four simple steps
使用 useDeferredValue 进行异步渲染
Delphi xe10.4 installing alphacontrols15.12
Connected block template and variants (4 questions in total)
Mongodb non relational database
MVVM and MVC
Es interview questions
[learn C and fly] 4day Chapter 2 program in C language (exercise 2.5 generate power table and factorial table
高并发场景下缓存处理方案
QT实现界面跳转
Leetcode question brushing (10) - sequential question brushing 46 to 50
2022低压电工考试题模拟考试题库模拟考试平台操作
How to run oddish successfully from 0?
tarjan2
MMSegmentation系列之训练与推理自己的数据集(三)
GB/T-2423.xx 环境试验文件,整理包括了最新的文件里面
【带你学c带你飞】3day第2章 用C语言编写程序(练习 2.3 计算分段函数)
[road of system analyst] collection of wrong topics in enterprise informatization chapter
超图iServer rest服务之feature查询
Missing numbers from 0 to n-1 (simple difficulty)