填空题,直接做就可以,其中为了方便起见,字符串从1开始,第0位用+填充
#include <iostream>
using namespace std;
string c = "+ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int res[5];
int main()
{
int i = 0;
int y = 2019;
int t;
while(y > 0)
{
t = y % 26;
y /= 26;
res[i++] = t;
}
i = i - 1;
for(i; i >= 0; i--)
{
cout << c[res[i]];
}
return 0;
}