| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156822 | 王培臻 | 字符类型 | C++ | Runtime Error | 0 MS | 272 KB | 540 | 2026-07-11 11:21:48 |
#include<iostream> using namespace std; int main() { char a[1]; cin>>a[1]; if(a[1]>='A'&&a[1]<='Z'){ if(a[1]=='A'||a[1]=='E'||a[1]=='I'||a[1]=='O'||a[1]=='U'){ cout<<"Upper"<<" "<<"Vowel"; }else{ cout<<"Upper"<<" "<<"letter"; } }else{ if(a[1]>='a'&&a[1]<='z'){ if(a[1]=='a'||a[1]=='e'||a[1]=='i'||a[1]=='o'||a[1]=='u'){ cout<<"Lower"<<" "<<"Vowel"; }else{ cout<<"Lower"<<" "<<"letter"; } }else{ if(a[1]>='0'&&a[1]<='9'){ cout<<"Digit"; }else{ cout<<"Other"; } } } return 0; }
*** stack smashing detected ***: ./Main terminated