# 66. 密码解密

66

const readline = require('readline');
const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout,
});

rl.on('line', function(s) {
    for(let i=26; i>=1; i--) {
        const key = i + (i >= 10 ? '*' : '');
        const value = String.fromCharCode(96 + i);
        s = s.replaceAll(key, value);
    }
    console.log(s);
});
1
2
3
4
5
6
7
8
9
10
11
12
13
14