| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155181 | 田子熙 | 变换字符串 | C++ | Accepted | 1 MS | 284 KB | 653 | 2026-06-02 21:26:57 |
#include<bits/stdc++.h> using namespace std; int main(){ char s1[31],s2[31],s3[31]; char *p1,*p2,*p3; cin>>s1; p1=s1; p2=s2; p3=s3; while(*p1!='\0'){ *p2=*p1; *p3=*p1; p1=p1+1; p2=p2+1; p3=p3+1; } *p2='\0'; *p3='\0'; p2=s2; while(*p2!='\0'){ if(*p2>=65&&*p2<=90){ *p2=' '; } p2=p2+1; } p3=s3; while(*p3!='\0') { if(*p3>=97&&*p3<=122){ *p3=' '; } p3=p3+1; } printf("%s\n",s1); printf("%s\n",s2); printf("%s\n",s3); return 0; }