| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 40658 | chenyifei | 合法C标识符 | C++ | Compile Error | 0 MS | 0 KB | 453 | 2024-02-15 22:57:51 |
#include<iostream> #include<string> using namespace std; int main(){ string a; cin>>a; if(a[0]>=48&&a[0]<=57){ cout<<"no"; return 0; } int len=strlen(a); for(int i=0;i<len;i++){ if((a[i]>=48&&a[i]<=57)||(a[i]>=65&&a[i]<=90)||(a[i]>=97&&a[i]<=122)||(a[i]==95)){ continue; }else { cout<<"no"; return 0; } } cout<<"yes"; return 0; }