Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
139435 陈航 求逆序字符串 C++ 运行出错 0 57 MS 240 KB 258 2024-03-23 17:24:53

Tests(0/3):


#include<bits/stdc++.h> using namespace std; int main(){ char st[200]; char A,B; int i,n=0; while((st[n++]=getchar())!='\n') A=getchar();getchar();B=getchar(); for(i=0;i<n;i++) if(st[i]==A) cout<<B; else cout<<st[i]; return 0; }


测评信息: