1 条题解

  • 0
    @ 2024-12-28 14:12:38
    #include<bits/stdc++.h>
    using namespace std;
    int main(){ //以 “bi” 开头的单词数量
    	string s;
    	int ans=0;
    	getline(cin,s);
    	s=" "+s;
    	for(int i=0;i<s.length();i++){
    		if(s[i]==' ' and s[i+1]=='b' and s[i+2]=='i')
    			ans++;
    	}
    	cout<<ans;
    	return 0;
    }
    
    • 1

    信息

    ID
    1801
    时间
    1000ms
    内存
    256MiB
    难度
    (无)
    标签
    (无)
    递交数
    0
    已通过
    0
    上传者