結果

問題 No.18 うーさー暗号
ユーザー chike_pluschike_plus
提出日時 2019-03-22 22:59:07
言語 F#
(F# 4.0)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 421 bytes
コンパイル時間 14,143 ms
コンパイル使用メモリ 189,384 KB
実行使用メモリ 31,080 KB
最終ジャッジ日時 2023-10-19 10:11:24
合計ジャッジ時間 16,871 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
30,912 KB
testcase_01 AC 62 ms
30,912 KB
testcase_02 AC 63 ms
30,916 KB
testcase_03 AC 63 ms
31,080 KB
testcase_04 AC 63 ms
31,080 KB
testcase_05 AC 64 ms
31,080 KB
testcase_06 AC 63 ms
31,080 KB
testcase_07 AC 63 ms
31,080 KB
testcase_08 AC 63 ms
31,080 KB
testcase_09 AC 63 ms
31,080 KB
testcase_10 AC 64 ms
30,916 KB
testcase_11 AC 63 ms
30,916 KB
testcase_12 AC 63 ms
31,072 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (556 ms)。
MSBuild のバージョン 17.7.3+8ec440e68 (.NET)
  main -> /home/judge/data/code/bin/Release/net7.0/main.dll
  main -> /home/judge/data/code/bin/Release/net7.0/publish/

ソースコード

diff #

let ``No.18 うーさー暗号``() =
  stdin.ReadLine()
  |> fun args ->
    args
    |> Seq.mapi (fun i c  ->
      let cn = (int c ) - ((i+1) % 26)
      let cn = if cn < 65 then cn + 26 else cn
      let cn = if cn > 90 then cn - 26 else cn
      cn |> char
    )
//      ((int c) - (i + 1) + 65 ) % 26 + 65 |> char)
    |> fun args -> System.String.Concat args
    |> stdout.WriteLine

``No.18 うーさー暗号``()
0