solution.cpp 203 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <iostream>
using namespace std;

void solve(int n)
{
    if (!n)
    {
        return;
    }
    solve(n / 26);
    cout << (char)(n % 26 + 64);
}

int main()
{
    solve(2019);
    return 0;
}