結果

問題 No.327 アルファベット列
ユーザー matsu7874
提出日時 2015-12-20 01:30:22
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 290 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-17 11:13:12
合計ジャッジ時間 2,671 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 2 WA * 48
権限があれば一括ダウンロードができます

ソースコード

diff #

import string
N = int(input())
digit = 0
total = 0
while (total + 1) * 26 - 1 < N:
    total = (total + 1) * 26 - 1
    digit += 1
# print(digit)
S = ''
S = string.ascii_uppercase[N%26]
i = 27
N += 1
while N >= i:
    S += string.ascii_uppercase[N%(i*27)//i - 1]
    i *= 27
print(S[::-1])
0