結果

問題 No.3000 enuemu暗号
ユーザー machoniumpmachoniump
提出日時 2020-12-21 14:59:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 29 ms / 5,000 ms
コード長 1,006 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 11,920 KB
実行使用メモリ 10,068 KB
最終ジャッジ日時 2023-10-21 11:42:25
合計ジャッジ時間 875 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,068 KB
testcase_01 AC 29 ms
10,068 KB
testcase_02 AC 29 ms
10,068 KB
testcase_03 AC 28 ms
10,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=str(input())
ans=""
for i in range(len(s)):
    if s[i]=="a":
        ans+="c"
    elif s[i]=="b":
        ans+="q"
    elif s[i]=="c":
        ans+="l"
    elif s[i]=="d":
        ans+="m"
    elif s[i]=="e":
        ans+="d"
    elif s[i]=="f":
        ans+="r"
    elif s[i]=="g":
        ans+="s"
    elif s[i]=="h":
        ans+="t"
    elif s[i]=="i":
        ans+="f"
    elif s[i]=="j":
        ans+="x"
    elif s[i]=="k":
        ans+="y"
    elif s[i]=="l":
        ans+="z"
    elif s[i]=="m":
        ans+="b"
    elif s[i]=="n":
        ans+="a"
    elif s[i]=="o":
        ans+="n"
    elif s[i]=="p":
        ans+="o"
    elif s[i]=="q":
        ans+="p"
    elif s[i]=="r":
        ans+="u"
    elif s[i]=="s":
        ans+="v"
    elif s[i]=="t":
        ans+="w"
    elif s[i]=="u":
        ans+="e"
    elif s[i]=="v":
        ans+="g"
    elif s[i]=="w":
        ans+="h"
    elif s[i]=="x":
        ans+="i"
    elif s[i]=="y":
        ans+="j"
    else:
        ans+="k"
print(ans)
0