結果

問題 No.756 チャンパーノウン定数 (1)
ユーザー ikdikd
提出日時 2020-05-01 17:54:29
言語 F#
(F# 4.0)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 287 bytes
コンパイル時間 5,439 ms
コンパイル使用メモリ 158,076 KB
実行使用メモリ 24,860 KB
最終ジャッジ日時 2023-08-25 23:59:04
合計ジャッジ時間 7,498 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
22,920 KB
testcase_01 AC 81 ms
22,888 KB
testcase_02 AC 81 ms
22,924 KB
testcase_03 AC 81 ms
22,836 KB
testcase_04 AC 82 ms
24,740 KB
testcase_05 AC 82 ms
22,732 KB
testcase_06 AC 80 ms
22,880 KB
testcase_07 AC 81 ms
22,772 KB
testcase_08 AC 81 ms
24,860 KB
testcase_09 AC 80 ms
22,776 KB
testcase_10 AC 82 ms
22,824 KB
testcase_11 AC 80 ms
24,848 KB
testcase_12 AC 80 ms
22,776 KB
testcase_13 AC 81 ms
22,700 KB
testcase_14 AC 80 ms
22,740 KB
testcase_15 AC 81 ms
22,804 KB
testcase_16 AC 81 ms
22,808 KB
testcase_17 AC 81 ms
22,864 KB
testcase_18 AC 82 ms
22,804 KB
testcase_19 AC 83 ms
22,892 KB
testcase_20 AC 81 ms
22,756 KB
testcase_21 AC 81 ms
22,884 KB
testcase_22 AC 79 ms
22,976 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

// Learn more about F# at http://fsharp.org

open System

[<EntryPoint>]
let main argv =
    let d = stdin.ReadLine().Trim() |> int
    let s = 
        [1..100] 
        |> List.map (fun x -> x |> string) 
        |> List.fold (fun acc x -> acc + x) ""
    printfn "%c" s.[d - 1]
    0
0