結果

問題 No.1291 小手調べ
ユーザー ikdikd
提出日時 2020-11-20 22:27:04
言語 F#
(F# 4.0)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 416 bytes
コンパイル時間 5,744 ms
コンパイル使用メモリ 157,520 KB
実行使用メモリ 27,040 KB
最終ジャッジ日時 2023-09-30 19:33:30
合計ジャッジ時間 6,793 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
22,896 KB
testcase_01 AC 87 ms
23,076 KB
testcase_02 AC 87 ms
20,756 KB
testcase_03 AC 90 ms
27,040 KB
testcase_04 AC 80 ms
24,708 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