結果

問題 No.1291 小手調べ
ユーザー ikdikd
提出日時 2020-11-20 22:27:04
言語 F#
(5.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 416 bytes
コンパイル時間 3,978 ms
使用メモリ 19,612 KB
最終ジャッジ日時 2023-02-23 18:59:27
合計ジャッジ時間 5,245 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 79 ms
16,980 KB
testcase_01 AC 83 ms
18,284 KB
testcase_02 AC 81 ms
18,132 KB
testcase_03 AC 84 ms
19,612 KB
testcase_04 AC 72 ms
16,660 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 _ =
    let n = stdin.ReadLine() |> int

    for _ in 1 .. n do
        let d = stdin.ReadLine() |> int

        if d = 1 then
            "10"
        else
            let suf =
                String.concat "" (Seq.init (d - 1) (fun _ -> "0"))

            "9" + suf
        |> printfn "%s"

    0 // return an integer exit code
0