結果

問題 No.18 うーさー暗号
ユーザー 3qvwn3qvwn
提出日時 2019-07-04 09:19:26
言語 Elixir
(1.16.2)
結果
AC  
実行時間 623 ms / 5,000 ms
コード長 200 bytes
コンパイル時間 1,228 ms
コンパイル使用メモリ 55,348 KB
実行使用メモリ 49,956 KB
最終ジャッジ日時 2023-08-29 23:40:02
合計ジャッジ時間 10,534 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 608 ms
49,224 KB
testcase_01 AC 615 ms
49,936 KB
testcase_02 AC 613 ms
49,380 KB
testcase_03 AC 617 ms
49,248 KB
testcase_04 AC 607 ms
49,920 KB
testcase_05 AC 616 ms
49,324 KB
testcase_06 AC 623 ms
49,116 KB
testcase_07 AC 615 ms
49,908 KB
testcase_08 AC 618 ms
49,956 KB
testcase_09 AC 614 ms
49,836 KB
testcase_10 AC 610 ms
49,180 KB
testcase_11 AC 606 ms
49,256 KB
testcase_12 AC 610 ms
49,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do 
  def main do
    IO.gets("") |> String.trim |> to_charlist |> Enum.with_index(1) |> Enum.map(fn {key, value} -> rem(key + 26- rem(value,26) - 65, 26) + 65 end) |> IO.puts
  end
end
0