結果

問題 No.18 うーさー暗号
ユーザー regeregeregerege
提出日時 2015-11-27 19:58:05
言語 F#
(F# 4.0)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 235 bytes
コンパイル時間 4,439 ms
コンパイル使用メモリ 158,920 KB
実行使用メモリ 26,976 KB
最終ジャッジ日時 2023-09-21 11:59:31
合計ジャッジ時間 6,389 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
22,872 KB
testcase_01 AC 75 ms
22,952 KB
testcase_02 AC 75 ms
24,948 KB
testcase_03 AC 76 ms
22,780 KB
testcase_04 AC 75 ms
22,796 KB
testcase_05 AC 77 ms
26,976 KB
testcase_06 AC 76 ms
24,840 KB
testcase_07 AC 77 ms
22,976 KB
testcase_08 AC 78 ms
22,868 KB
testcase_09 AC 76 ms
22,888 KB
testcase_10 AC 76 ms
22,808 KB
testcase_11 AC 76 ms
24,912 KB
testcase_12 AC 76 ms
22,856 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let ``No.18 うーさー暗号`` () =
    let f n (c:char) = string <| (char)((((int)c % 65 + 26) - ((n+1)%26)) % 26 + 65)
    stdin.ReadLine()
    |> Seq.mapi f
    |> Seq.reduce (+)
    |> printfn "%s"
``No.18 うーさー暗号`` ()
0