結果

問題 No.18 うーさー暗号
ユーザー mazreanmazrean
提出日時 2019-09-16 01:25:49
言語 F#
(F# 4.0)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 205 bytes
コンパイル時間 3,278 ms
コンパイル使用メモリ 159,668 KB
実行使用メモリ 23,996 KB
最終ジャッジ日時 2023-09-21 04:18:56
合計ジャッジ時間 4,768 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
21,976 KB
testcase_01 AC 56 ms
21,892 KB
testcase_02 AC 56 ms
21,984 KB
testcase_03 AC 56 ms
23,924 KB
testcase_04 AC 57 ms
23,996 KB
testcase_05 AC 56 ms
21,888 KB
testcase_06 AC 57 ms
21,996 KB
testcase_07 AC 56 ms
21,960 KB
testcase_08 AC 56 ms
21,880 KB
testcase_09 AC 56 ms
21,968 KB
testcase_10 AC 56 ms
22,124 KB
testcase_11 AC 56 ms
21,868 KB
testcase_12 AC 55 ms
21,912 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let f i c =
    let cn= (int c)-(i+1)%26
    if cn<65 then (cn+26) |> char
    elif cn>90 then (cn-26) |> char
    else cn |> char
stdin.ReadLine()
|> Seq.mapi f
|> System.String.Concat
|> stdout.WriteLine
0