結果

問題 No.327 アルファベット列
ユーザー irumo8202
提出日時 2022-01-28 19:40:51
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 394 ms
コンパイル使用メモリ 82,448 KB
実行使用メモリ 54,120 KB
最終ジャッジ日時 2024-12-29 23:17:44
合計ジャッジ時間 4,413 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 47
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(n: int) -> str:
    res = ""
    n += 1
    while n:
        r = n % 26
        if r == 0:
            r = 26
            n -= 1
        res += chr(r + 64)
        n //= 26
    return res


print(solve(int(input())))
0