2 条题解

  • 1
    @ 2025-7-15 9:59:02

    #include<bits/stdc++.h> using namespace std; int main() { char a; cin>>a; if(a>='A'&&a<='Z') { cout<<"upper"; } else if(a>='a'&&a<='z'){ cout<<"lower"; } else if(a>='0'&&a<='9'){ cout<<"digit"; } else{ cout<<"other"; } return 0; }

    • 1
      @ 2025-7-15 9:49:55
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	char a;
      	cin>>a;
      	if(a>='A'&&a<='Z')
      	{
      		cout<<"upper";
      	} else if(a>='a'&&a<='z'){
      		cout<<"lower";
      	} else if(a>='0'&&a<='9'){
      		cout<<"digit";
      	} else{
      		cout<<"other";
      	}
      	return 0;
      }
      
      • 1

      信息

      编号
      2303
      时间
      1000ms
      内存
      256MiB
      难度
      2
      标签
      递交数
      104
      已通过
      49
      上传者