Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
80443 张皓睿 回文字符串I C++ Wrong Answer 1 MS 280 KB 201 2024-07-11 14:37:58

Tests(0/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main(){ char a[1000] = { }, b,c; cin >>a>>b>>c; for(int i=0;i<strlen(a);i++){ if(a[i]==b){ a[i] = c; } } cout<<a; }


Run Info:

------Input------
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl
------Answer-----
Yes
------Your output-----
ltpffytlohuaoofsqawhbfrvtppczdnumeicqcsvfgjvydqhhuuhhqdyvjgfvscqciemundzcpptvrfbhwaqsfooauholtyffptl