Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160192 李沐阳 统计特定单词数 C++ Wrong Answer 1 MS 280 KB 370 2026-09-13 09:22:23

Tests(0/11):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ string a; cin>>a; int a1=a.size(),q=0; if(a[0]>='0'&&a[0]<='9'){ cout<<"no"<<endl; return 0; } for(int i=0;i<a1;i++){ if(!((a[i]<='Z'&&a[i]>='A')||(a[i]<='z'&&a[i]>='a')||(a[i]>='0'&&a[i]<='9')||(a[i]=='_'))){ cout<<"no"<<endl; return 0; } } cout<<"yes"<<endl; return 0; }


Run Info:

------Input------
alun is the best teacher of TCJY ALUN
------Answer-----
1 28
------Your output-----
yes