結果

問題 No.327 アルファベット列
コンテスト
ユーザー matsu7874
提出日時 2015-12-20 00:21:24
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 308 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 440 ms
コンパイル使用メモリ 20,572 KB
実行使用メモリ 15,360 KB
最終ジャッジ日時 2026-04-06 06:25:42
合計ジャッジ時間 7,075 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import string


def radix_convert(number, radix):
    s = []
    while number > 0:
        s.append(number % radix)
        number = number // radix
    return s[::-1]

N = int(input())
S = ''.join([string.ascii_uppercase[e - 1] for e in radix_convert(N, 26)])[:-1]
print(S + string.ascii_uppercase[N % 26])
0