模仿二进制,的26进制
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n=2019;
string ans="";
int temp;
char c[27]={'0','A'};
for(int i=2;i<27;i++)
{
c[i]=c[i-1]+1;
}
while(n)
{
temp=n%26;
ans+=c[temp];
n/=26;
}
reverse(ans.begin(),ans.end());
cout<<ans;
return 0;
}