結果

問題 No.327 アルファベット列
ユーザー FromBooskaFromBooska
提出日時 2023-02-23 14:18:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 553 bytes
コンパイル時間 1,166 ms
コンパイル使用メモリ 86,880 KB
実行使用メモリ 71,516 KB
最終ジャッジ日時 2023-09-30 16:38:06
合計ジャッジ時間 7,036 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 70 ms
70,456 KB
testcase_02 AC 72 ms
70,708 KB
testcase_03 AC 73 ms
70,388 KB
testcase_04 WA -
testcase_05 AC 71 ms
70,248 KB
testcase_06 WA -
testcase_07 AC 72 ms
70,604 KB
testcase_08 AC 76 ms
70,564 KB
testcase_09 AC 71 ms
70,564 KB
testcase_10 AC 71 ms
70,612 KB
testcase_11 AC 71 ms
70,256 KB
testcase_12 AC 72 ms
70,572 KB
testcase_13 AC 72 ms
70,536 KB
testcase_14 AC 71 ms
70,548 KB
testcase_15 AC 71 ms
70,752 KB
testcase_16 AC 71 ms
70,616 KB
testcase_17 AC 71 ms
70,256 KB
testcase_18 AC 70 ms
70,532 KB
testcase_19 AC 69 ms
70,672 KB
testcase_20 AC 71 ms
70,752 KB
testcase_21 AC 69 ms
70,260 KB
testcase_22 AC 71 ms
70,736 KB
testcase_23 AC 71 ms
70,628 KB
testcase_24 AC 71 ms
70,260 KB
testcase_25 AC 71 ms
70,528 KB
testcase_26 AC 71 ms
70,616 KB
testcase_27 AC 71 ms
70,424 KB
testcase_28 AC 70 ms
70,452 KB
testcase_29 AC 73 ms
70,456 KB
testcase_30 WA -
testcase_31 AC 70 ms
70,628 KB
testcase_32 AC 71 ms
70,492 KB
testcase_33 AC 72 ms
70,308 KB
testcase_34 AC 72 ms
70,392 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

dic = {}
alphabets = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
for i in range(26):
    dic[(i)%26] = alphabets[i]

#print(dic)
    
def base_n(num_10,n):
    str_n = []
    while num_10:
        str_n.append(num_10%n)
        num_10 //= n
    return str_n

N = int(input())
nums_reverse = base_n(N, 26)
#print(nums_reverse)
ans_reverse = []

for i in range(len(nums_reverse)):
    if i == 0:
        ans_reverse.append(dic[(nums_reverse[i])%26])
    else:
        ans_reverse.append(dic[(nums_reverse[i]-1)%26])
#print(ans_reverse)
print(''.join(ans_reverse[::-1]))
0