#include <iostream>
#include <string>

int main() {
    std::string input;
    std::cin >> input;

    for (char& c : input) {
        if (c == 'O') {
            c = '0';
        } else if (c == 'l') {
            c = '1';
        } else if (c == 'Z') {
            c = '2';
        } else if (c == 'S') {
            c = '5';
        } else if (c == 'b') {
            c = '6';
        } else if (c == 'B') {
            c = '8';
        } else if (c == 'q') {
            c = '9';
        }
    }

    std::cout << input << std::endl;

    return 0;
}
C++ 扫描识别数字串错误纠正代码

原文地址: https://www.cveoy.top/t/topic/o79y 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录