Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
41019 老方 数单词 C++ 通过 0 MS 252 KB 291 2024-02-18 16:21:07

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ char y[1005]; int cnt=0; gets(y); for(int i=0;i<strlen(y);i++){ if(y[i]>='A'&&y[i]<='Z')y[i]+=32; } string y2=y; for(int i=0;i<strlen(y)-7;i++){ if(y2.substr(i,7)=="lanqiao")cnt++; } cout<<cnt; return 0; }


测评信息: