Problem: 1000000000000001 dogs suddenly appeared under the roof of Roger's house, all of which he decided to keep. The dogs had been numbered 1 through 1000000000000001, but he gave them new names, as follows:    * the dogs numbered 1,2,\cdots,26 were respectively given the names `a`, `b`, ..., `z`;   * the dogs numbered 27,28,29,\cdots,701,702  were respectively given the names `aa`, `ab`, `ac`, ..., `zy`, `zz`;   * the dogs numbered 703,704,705,\cdots,18277,18278  were respectively given the names `aaa`, `aab`, `aac`, ..., `zzy`, `zzz`;   * the dogs numbered 18279,18280,18281,\cdots,475253,475254  were respectively given the names `aaaa`, `aaab`, `aaac`, ..., `zzzy`, `zzzz`;   * the dogs numbered 475255,475256,\cdots  were respectively given the names `aaaaa`, `aaaab`, ...;   * and so on.  To sum it up, the dogs numbered 1, 2, \cdots were respectively given the following names:  `a`, `b`, ..., `z`, `aa`, `ab`, ..., `az`, `ba`, `bb`, ..., `bz`, ..., `za`, `zb`, ..., `zz`, `aaa`, `aab`, ..., `aaz`, `aba`, `abb`, ..., `abz`, ..., `zzz`, `aaaa`, ...  Now, Roger asks you:  "What is the name for the dog numbered N?"

Submission attempts (in order):
N = int(input())
name = []
while N > 26:
    name.append(N%26)
    N = int(N / 26)
name.append(N)

def swap(X):
    if X == 1:
        return "a"
    elif X == 2:
        return "b"
    elif X == 3:
        return "c"
    elif X == 4:
        return "d"
    elif X == 5:
        return "e"
    elif X == 6:
        return "f"
    elif X == 7:
        return "g"
    elif X == 8:
        return "h"
    elif X == 9:
        return "i"
    elif X == 10:
        return "j"
    elif X == 11:
        return "k"
    elif X == 12:
        return "l"
    elif X == 13:
        return "m"
    elif X == 14:
        return "n"
    elif X == 15:
        return "o"
    elif X == 16:
        return "p"
    elif X == 17:
        return "q"
    elif X == 18:
        return "r"
    elif X == 19:
        return "s"
    elif X == 20:
        return "t"
    elif X == 21:
        return "u"
    elif X == 22:
        return "v"
    elif X == 23:
        return "w"
    elif X == 24:
        return "x"
    elif X == 25:
        return "y"
    elif X == 0:
        return "z"

swap_name = []
for i in range(len(name)):
    swap_name.append(swap(name[len(name)-i-1]))
print(*swap_name, sep="")

print(26**13)


N = int(input())
name = []
N = N - 1
while N >= 26:
    name.append(N % 26)
    N = int(N / 26) - 1
name.append(N)

def swap(X):
    if X == 0:
        return "a"
    elif X == 1:
        return "b"
    elif X == 2:
        return "c"
    elif X == 3:
        return "d"
    elif X == 4:
        return "e"
    elif X == 5:
        return "f"
    elif X == 6:
        return "g"
    elif X == 7:
        return "h"
    elif X == 8:
        return "i"
    elif X == 9:
        return "j"
    elif X == 10:
        return "k"
    elif X == 11:
        return "l"
    elif X == 12:
        return "m"
    elif X == 13:
        return "n"
    elif X == 14:
        return "o"
    elif X == 15:
        return "p"
    elif X == 16:
        return "q"
    elif X == 17:
        return "r"
    elif X == 18:
        return "s"
    elif X == 19:
        return "t"
    elif X == 20:
        return "u"
    elif X == 21:
        return "v"
    elif X == 22:
        return "w"
    elif X == 23:
        return "x"
    elif X == 24:
        return "y"
    elif X == 25:
        return "z"

swap_name = []
for i in range(len(name)):
    swap_name.append(swap(name[len(name)-i-1]))
print(*swap_name, sep="")


Verdicts: Wrong Answer

Accepted