結果

問題 No.327 アルファベット列
ユーザー 👑 KazunKazun
提出日時 2020-10-14 04:34:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 86,928 KB
実行使用メモリ 80,228 KB
最終ジャッジ日時 2023-09-28 00:28:21
合計ジャッジ時間 10,595 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
80,160 KB
testcase_01 AC 128 ms
80,060 KB
testcase_02 AC 131 ms
80,100 KB
testcase_03 AC 130 ms
80,144 KB
testcase_04 AC 123 ms
79,972 KB
testcase_05 AC 127 ms
79,976 KB
testcase_06 AC 126 ms
80,052 KB
testcase_07 AC 123 ms
80,136 KB
testcase_08 AC 126 ms
80,160 KB
testcase_09 AC 125 ms
79,976 KB
testcase_10 AC 123 ms
79,992 KB
testcase_11 AC 131 ms
80,088 KB
testcase_12 AC 126 ms
80,132 KB
testcase_13 AC 127 ms
80,048 KB
testcase_14 AC 134 ms
80,092 KB
testcase_15 AC 130 ms
80,092 KB
testcase_16 AC 129 ms
80,036 KB
testcase_17 AC 131 ms
80,180 KB
testcase_18 AC 129 ms
80,140 KB
testcase_19 AC 131 ms
79,884 KB
testcase_20 AC 130 ms
80,116 KB
testcase_21 AC 130 ms
80,152 KB
testcase_22 AC 129 ms
80,132 KB
testcase_23 AC 130 ms
79,884 KB
testcase_24 AC 128 ms
80,160 KB
testcase_25 AC 129 ms
80,228 KB
testcase_26 AC 129 ms
79,884 KB
testcase_27 AC 136 ms
79,972 KB
testcase_28 AC 133 ms
80,036 KB
testcase_29 AC 126 ms
80,108 KB
testcase_30 AC 127 ms
80,056 KB
testcase_31 AC 124 ms
80,152 KB
testcase_32 AC 125 ms
80,160 KB
testcase_33 AC 126 ms
80,048 KB
testcase_34 AC 136 ms
80,076 KB
testcase_35 AC 132 ms
79,928 KB
testcase_36 AC 131 ms
80,184 KB
testcase_37 AC 131 ms
80,056 KB
testcase_38 AC 133 ms
80,224 KB
testcase_39 AC 138 ms
80,136 KB
testcase_40 AC 132 ms
80,028 KB
testcase_41 AC 134 ms
80,144 KB
testcase_42 AC 130 ms
80,088 KB
testcase_43 AC 132 ms
80,228 KB
testcase_44 AC 130 ms
80,160 KB
testcase_45 AC 131 ms
80,020 KB
testcase_46 AC 132 ms
80,052 KB
testcase_47 AC 132 ms
79,852 KB
testcase_48 AC 131 ms
80,136 KB
testcase_49 AC 129 ms
80,112 KB
testcase_50 AC 131 ms
79,924 KB
testcase_51 AC 130 ms
79,932 KB
testcase_52 AC 133 ms
80,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from string import ascii_uppercase

N=int(input())
X=ascii_uppercase
alpha=26

I=alpha
p=1
while N>=I:
    N-=I
    p+=1
    I*=alpha

D=""
for _ in [0]*p:
    D=X[N%alpha]+D
    N//=alpha

print(D)
0