Run ID:119630

提交时间:2025-05-18 09:28:01

#include<bits/stdc++.h> using namespace std; char a[1001]; int n; int main(){ cin>>a; int len=strlen(a); char *p; p=a; for(int j=0;j<len;j++){ cout<<*p; p++; } cout<<endl; p=a; for(int j=0;j<len;j++){ if(*p>='A'&&*p<='Z'){ cout<<' '; } else{ cout<<*p; } p++; } cout<<endl; p=a; for(int j=0;j<len;j++){ if(*p>='a'&&*p<='z'){ cout<<' '; } else{ cout<<*p; } p++; } cout<<endl; return 0; }