結果

問題 No.327 アルファベット列
ユーザー Kaito KoikeKaito Koike
提出日時 2018-04-18 14:28:52
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 316 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-06-27 04:29:37
合計ジャッジ時間 3,649 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 1 WA * 49
権限があれば一括ダウンロードができます

ソースコード

diff #

import unicodedata

n = int(input())

s = ord("A")

digit = 1

counter = []

while(True):
    counter.append(n%26)
    n = n//26
    if n == 0:
        break
if len(counter) > 1:
    counter[len(counter)-1] = counter[len(counter)-1] - 1


ans = ""
for number in counter:
    ans = chr( s + number) + ans

print(ans)
0