#include<bits/stdc++.h>
using namespace std;
string s, temp, ans;
int main() {
cin >> s;
for (int i = 0; i < s.size(); i++) {
temp.push_back(s[i]);
int num = stoi(temp);
if (num > 26) {
temp.pop_back();
num = stoi(temp);
ans.push_back(num + 'A' - 1);
temp.clear();
temp.push_back(s[i]);
}
}
if (!temp.empty()) {
int num = stoi(temp);
ans.push_back(num + 'A' - 1);
}
cout << ans;
return 0;
}
0.0分
1 人评分
C语言程序设计教程(第三版)课后习题5.8 (C语言代码)浏览:672 |
C语言程序设计教程(第三版)课后习题9.3 (C语言代码)浏览:668 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:542 |
【亲和数】 (C语言代码)浏览:597 |
C语言程序设计教程(第三版)课后习题9.3 (C语言代码)浏览:592 |
矩阵的对角线之和 (C语言代码)浏览:1342 |
1052题解(链表操作)浏览:651 |
C语言程序设计教程(第三版)课后习题8.2 (C语言代码)浏览:1027 |
简单的a+b (C语言代码)浏览:434 |
IP判断 (C++代码)浏览:746 |