結果

問題 No.327 アルファベット列
ユーザー maguroguma
提出日時 2017-08-28 14:20:43
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 315 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-11-06 08:27:58
合計ジャッジ時間 3,428 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

N = int(input())

number_list = []
while True:
    number_list.append(N%26)
    N //= 26
    if N==0:
        break

chr_list = []
for i,n in zip(range(len(number_list)), number_list):
    c = chr(ord('A')+n) if i==0 else chr(ord('A')+n-1)
    chr_list.insert(0, c)
print(''.join(chr_list))
0