Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118618 | Kevin | 统计字符数量 | C++ | Output Limit Exceeded | 1 MS | 264 KB | 260 | 2025-05-06 15:35:16 |
#include<iostream> #include<cstring> char a[205],b[205]; using namespace std; int main(){ gets(a); char A,B; cin>>A>>B; int len=strlen(a); for(int i=0;i<len;i++){ if(a[i]==A){ b[i]=B; } else b[i]=a[i]; } cout<<b; return 0; }