結果

問題 No.1249 小学校1年生の夢
ユーザー ichibanshiboriichibanshibori
提出日時 2020-10-16 23:51:44
言語 F#
(F# 4.0)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 5,324 ms
コンパイル使用メモリ 152,408 KB
実行使用メモリ 24,932 KB
最終ジャッジ日時 2023-09-28 06:40:47
合計ジャッジ時間 9,689 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
24,736 KB
testcase_01 AC 70 ms
24,660 KB
testcase_02 AC 71 ms
24,768 KB
testcase_03 AC 69 ms
22,684 KB
testcase_04 AC 69 ms
24,932 KB
testcase_05 AC 70 ms
22,720 KB
testcase_06 AC 69 ms
22,808 KB
testcase_07 AC 68 ms
22,620 KB
testcase_08 AC 69 ms
20,744 KB
testcase_09 AC 70 ms
22,600 KB
testcase_10 AC 68 ms
20,796 KB
testcase_11 AC 69 ms
22,664 KB
testcase_12 AC 71 ms
24,708 KB
testcase_13 AC 69 ms
24,820 KB
testcase_14 AC 69 ms
22,780 KB
testcase_15 AC 70 ms
22,792 KB
testcase_16 AC 67 ms
20,620 KB
testcase_17 AC 69 ms
20,744 KB
testcase_18 AC 70 ms
22,684 KB
testcase_19 AC 67 ms
22,832 KB
testcase_20 AC 70 ms
24,832 KB
testcase_21 AC 71 ms
20,636 KB
testcase_22 AC 77 ms
22,820 KB
testcase_23 AC 70 ms
24,624 KB
testcase_24 AC 68 ms
22,812 KB
testcase_25 AC 68 ms
22,672 KB
testcase_26 AC 69 ms
20,728 KB
testcase_27 AC 68 ms
24,720 KB
testcase_28 AC 68 ms
22,784 KB
testcase_29 AC 69 ms
22,768 KB
testcase_30 AC 69 ms
22,652 KB
testcase_31 AC 68 ms
20,736 KB
testcase_32 AC 68 ms
22,616 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let solve a b c =
    if a + b = c then
        "Correct"
    else
        "Incorrect"

let () =
    let a, b, c =
        stdin.ReadLine()
        |> fun s -> s.Split()
        |> Array.map int
        |> fun arr -> (arr.[0], arr.[1], arr.[2])

    solve a b c |> printfn "%s"
0