結果

問題 No.552 十分簡単な星1の問題
ユーザー guriceringuricerin
提出日時 2020-01-07 12:49:15
言語 F#
(.NET 7)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 823 bytes
コンパイル時間 4,214 ms
コンパイル使用メモリ 162,268 KB
実行使用メモリ 24,840 KB
最終ジャッジ日時 2023-08-14 23:15:07
合計ジャッジ時間 8,659 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
22,096 KB
testcase_01 AC 74 ms
20,624 KB
testcase_02 AC 74 ms
20,688 KB
testcase_03 AC 74 ms
22,608 KB
testcase_04 AC 75 ms
24,812 KB
testcase_05 AC 74 ms
22,736 KB
testcase_06 AC 76 ms
22,840 KB
testcase_07 AC 75 ms
22,772 KB
testcase_08 AC 76 ms
24,820 KB
testcase_09 AC 75 ms
22,756 KB
testcase_10 AC 75 ms
24,792 KB
testcase_11 AC 77 ms
22,716 KB
testcase_12 AC 76 ms
20,704 KB
testcase_13 AC 75 ms
24,816 KB
testcase_14 AC 76 ms
22,652 KB
testcase_15 AC 76 ms
22,860 KB
testcase_16 AC 75 ms
22,716 KB
testcase_17 AC 76 ms
22,844 KB
testcase_18 AC 75 ms
22,648 KB
testcase_19 AC 75 ms
22,772 KB
testcase_20 AC 74 ms
22,676 KB
testcase_21 AC 75 ms
22,804 KB
testcase_22 AC 75 ms
22,584 KB
testcase_23 AC 77 ms
22,652 KB
testcase_24 AC 76 ms
24,808 KB
testcase_25 AC 75 ms
22,732 KB
testcase_26 AC 77 ms
22,596 KB
testcase_27 AC 76 ms
20,728 KB
testcase_28 AC 75 ms
24,756 KB
testcase_29 AC 75 ms
24,652 KB
testcase_30 AC 74 ms
20,636 KB
testcase_31 AC 75 ms
22,652 KB
testcase_32 AC 76 ms
24,696 KB
testcase_33 AC 76 ms
24,840 KB
testcase_34 AC 75 ms
22,736 KB
testcase_35 AC 78 ms
24,824 KB
testcase_36 AC 75 ms
22,712 KB
testcase_37 AC 75 ms
22,796 KB
testcase_38 AC 76 ms
22,612 KB
testcase_39 AC 75 ms
22,680 KB
testcase_40 AC 76 ms
22,708 KB
testcase_41 AC 75 ms
22,796 KB
testcase_42 AC 75 ms
20,704 KB
testcase_43 AC 75 ms
22,716 KB
testcase_44 AC 76 ms
24,696 KB
testcase_45 AC 77 ms
22,768 KB
testcase_46 AC 76 ms
22,724 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

open System
open System.Collections.Generic

[<AutoOpen>]
module Cin =
    let read f = stdin.ReadLine() |> f
    let reada f = stdin.ReadLine().Split() |> Array.map f
    let readChars() = read string |> Seq.toArray
    let readInts() = readChars() |> Array.map (fun x -> Convert.ToInt32(x.ToString()))

[<AutoOpen>]
module Cout =
    let writer = new IO.StreamWriter(new IO.BufferedStream(Console.OpenStandardOutput()))
    let print (s: string) = writer.Write s
    let println (s: string) = writer.WriteLine s
    let inline puts (s: ^a) = string s |> println

let solve() =
    read string
    |> fun s ->
        if s = "0" then "0" else sprintf "%s0" s
    |> puts

[<EntryPoint>]
let main _ =
    try
        solve()
    with e -> printfn "%s" (e.ToString())
    writer.Close()
    0 // return an integer exit code
0