結果

問題 No.327 アルファベット列
ユーザー rocoderrocoder
提出日時 2017-07-01 16:08:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 957 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-04-15 10:33:52
合計ジャッジ時間 3,235 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,880 KB
testcase_01 AC 32 ms
10,880 KB
testcase_02 AC 32 ms
10,880 KB
testcase_03 AC 34 ms
10,880 KB
testcase_04 WA -
testcase_05 AC 30 ms
10,880 KB
testcase_06 WA -
testcase_07 AC 30 ms
10,880 KB
testcase_08 AC 30 ms
10,880 KB
testcase_09 AC 30 ms
10,880 KB
testcase_10 AC 31 ms
10,880 KB
testcase_11 AC 30 ms
10,880 KB
testcase_12 AC 29 ms
10,880 KB
testcase_13 AC 30 ms
10,880 KB
testcase_14 AC 30 ms
10,880 KB
testcase_15 AC 31 ms
10,880 KB
testcase_16 AC 30 ms
10,880 KB
testcase_17 AC 32 ms
10,880 KB
testcase_18 AC 30 ms
11,008 KB
testcase_19 AC 29 ms
10,880 KB
testcase_20 AC 30 ms
10,880 KB
testcase_21 AC 30 ms
10,880 KB
testcase_22 AC 30 ms
10,880 KB
testcase_23 AC 30 ms
10,880 KB
testcase_24 AC 30 ms
10,880 KB
testcase_25 AC 31 ms
11,008 KB
testcase_26 AC 30 ms
10,880 KB
testcase_27 AC 31 ms
10,880 KB
testcase_28 AC 30 ms
10,880 KB
testcase_29 AC 30 ms
10,880 KB
testcase_30 WA -
testcase_31 AC 31 ms
10,880 KB
testcase_32 AC 30 ms
10,880 KB
testcase_33 AC 30 ms
10,880 KB
testcase_34 AC 31 ms
10,880 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 #

def nta(N):
    if N==0:
        a="A"
    elif N==1: 
        a="B"
    elif N==2:
        a="C"
    elif N==3:
        a="D"
    elif N==4:
        a="E"
    elif N==5:
        a="F"
    elif N==6:
        a="G"
    elif N==7:
        a="H"
    elif N==8:
        a="I"
    elif N==9:
        a="J"
    elif N==10:
        a="K"
    elif N==11:
        a="L"
    elif N==12:
        a="M"
    elif N==13:
        a="N"
    elif N==14:
        a="O"
    elif N==15:
        a="P"
    elif N==16:
        a="Q"
    elif N==17:
        a="R"
    elif N==18:
        a="S"
    elif N==19:
        a="T"
    elif N==20:
        a="U"
    elif N==21:
        a="V"
    elif N==22:
        a="W"
    elif N==23:
        a="X"
    elif N==24:
        a="Y"
    elif N==25:
        a="Z"
    return a
Nu=int(input())
R=Nu%26
S=""
S+=nta(R)
Nu-=R
while Nu>0:
    Nu//=26
    R=Nu%26
    Nu-=R
    if R==0:
        R=25
    else:
        R-=1
    S=nta(R)+S
print(S)
0