题解 | 年轻人不讲5的

年轻人不讲5的

https://www.nowcoder.com/practice/504e04804610463facbedaad9a8c742e

#include <iostream>
using namespace std;

int main() {
    string malaoshi;
    cin >> malaoshi;
    for(int i = 0;i< malaoshi.size() ;i++)
    {
        if(malaoshi[i] == '5')
        {
            malaoshi[i] = '*';
        }
    }
    cout << malaoshi;
    return 0;
}
// 64 位输出请用 printf("%lld")

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务