結果

問題 No.163 cAPSlOCK
ユーザー hum_ophum_op
提出日時 2016-04-16 16:11:39
言語 F#
(F# 4.0)
結果
AC  
実行時間 62 ms / 5,000 ms
コード長 211 bytes
コンパイル時間 5,889 ms
コンパイル使用メモリ 190,340 KB
実行使用メモリ 30,592 KB
最終ジャッジ日時 2024-04-15 02:12:24
合計ジャッジ時間 8,144 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
30,464 KB
testcase_01 AC 60 ms
30,336 KB
testcase_02 AC 60 ms
30,336 KB
testcase_03 AC 62 ms
30,464 KB
testcase_04 AC 62 ms
30,464 KB
testcase_05 AC 60 ms
30,464 KB
testcase_06 AC 61 ms
30,208 KB
testcase_07 AC 62 ms
30,464 KB
testcase_08 AC 61 ms
30,208 KB
testcase_09 AC 61 ms
30,168 KB
testcase_10 AC 62 ms
30,336 KB
testcase_11 AC 59 ms
30,208 KB
testcase_12 AC 62 ms
30,592 KB
testcase_13 AC 61 ms
30,080 KB
testcase_14 AC 59 ms
30,080 KB
testcase_15 AC 62 ms
30,464 KB
testcase_16 AC 60 ms
30,208 KB
testcase_17 AC 60 ms
30,168 KB
testcase_18 AC 60 ms
30,464 KB
testcase_19 AC 59 ms
30,208 KB
testcase_20 AC 61 ms
30,464 KB
testcase_21 AC 60 ms
30,168 KB
testcase_22 AC 61 ms
30,208 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (211 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

open System

let No163 () =
    let diff = int 'a' - int 'A'
    Console.ReadLine()
    |> String.map (fun e-> if e >= 'a' then char (int e - diff) else char (int e + diff))
    |> printfn "%s"

    ()

No163 ()
0