結果

問題 No.327 アルファベット列
ユーザー ynyn
提出日時 2016-05-14 17:23:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 298 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 82,952 KB
実行使用メモリ 53,768 KB
最終ジャッジ日時 2024-04-16 08:26:34
合計ジャッジ時間 3,779 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
52,196 KB
testcase_01 AC 38 ms
53,136 KB
testcase_02 AC 40 ms
52,280 KB
testcase_03 AC 40 ms
52,752 KB
testcase_04 AC 39 ms
53,224 KB
testcase_05 AC 39 ms
52,812 KB
testcase_06 AC 40 ms
52,616 KB
testcase_07 AC 39 ms
52,740 KB
testcase_08 AC 39 ms
52,892 KB
testcase_09 AC 39 ms
52,460 KB
testcase_10 AC 40 ms
53,100 KB
testcase_11 AC 38 ms
53,336 KB
testcase_12 AC 39 ms
53,168 KB
testcase_13 AC 39 ms
53,408 KB
testcase_14 AC 38 ms
53,420 KB
testcase_15 AC 39 ms
53,760 KB
testcase_16 AC 39 ms
51,948 KB
testcase_17 AC 39 ms
53,076 KB
testcase_18 AC 40 ms
52,144 KB
testcase_19 AC 39 ms
52,464 KB
testcase_20 AC 39 ms
53,768 KB
testcase_21 AC 38 ms
53,112 KB
testcase_22 AC 39 ms
52,688 KB
testcase_23 AC 39 ms
53,300 KB
testcase_24 AC 39 ms
52,772 KB
testcase_25 AC 39 ms
53,120 KB
testcase_26 AC 39 ms
52,292 KB
testcase_27 AC 39 ms
52,960 KB
testcase_28 AC 40 ms
53,320 KB
testcase_29 AC 38 ms
52,092 KB
testcase_30 AC 39 ms
53,472 KB
testcase_31 AC 39 ms
51,980 KB
testcase_32 AC 39 ms
53,268 KB
testcase_33 AC 39 ms
52,404 KB
testcase_34 AC 38 ms
52,416 KB
testcase_35 AC 39 ms
52,632 KB
testcase_36 AC 39 ms
52,192 KB
testcase_37 AC 39 ms
52,128 KB
testcase_38 AC 39 ms
53,724 KB
testcase_39 AC 38 ms
53,416 KB
testcase_40 AC 38 ms
52,112 KB
testcase_41 AC 39 ms
52,084 KB
testcase_42 AC 38 ms
52,744 KB
testcase_43 AC 39 ms
53,012 KB
testcase_44 AC 40 ms
52,368 KB
testcase_45 AC 39 ms
52,344 KB
testcase_46 AC 40 ms
53,132 KB
testcase_47 AC 40 ms
52,828 KB
testcase_48 AC 39 ms
53,268 KB
testcase_49 AC 38 ms
53,244 KB
testcase_50 AC 39 ms
51,824 KB
testcase_51 AC 40 ms
52,104 KB
testcase_52 AC 40 ms
52,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
alp = [chr(i) for i in range(65, 65+26)]

digit = 1
origin = 0
while True:
    if origin <= n < origin + 26**digit:
        break

    origin += 26**digit
    digit += 1

m = n - origin
ans = ""
for i in range(digit):
    a = m % 26
    ans = alp[a] + ans
    m //= 26

print(ans)
0