結果

問題 No.272 NOT回路
ユーザー vain0vain0
提出日時 2015-08-28 22:25:26
言語 F#
(.NET 7)
結果
AC  
実行時間 82 ms / 1,000 ms
コード長 219 bytes
コンパイル時間 5,857 ms
コンパイル使用メモリ 162,120 KB
実行使用メモリ 24,896 KB
最終ジャッジ日時 2023-09-25 19:11:44
合計ジャッジ時間 6,288 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
20,748 KB
testcase_01 AC 80 ms
22,836 KB
testcase_02 AC 80 ms
24,888 KB
testcase_03 AC 81 ms
24,828 KB
testcase_04 AC 79 ms
22,900 KB
testcase_05 AC 80 ms
20,660 KB
testcase_06 AC 82 ms
22,864 KB
testcase_07 AC 80 ms
22,796 KB
testcase_08 AC 80 ms
22,756 KB
testcase_09 AC 81 ms
24,768 KB
testcase_10 AC 80 ms
24,896 KB
testcase_11 AC 79 ms
22,808 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

/home/judge/data/code/Main.fs(8,19): warning FS0025: Incomplete pattern matches on this expression. For example, the value '2' may indicate a case not covered by the pattern(s).

ソースコード

diff #

open System

[<EntryPoint>]
let main argv =
    let n = Int32.Parse <| Console.ReadLine()
    do
        printfn "%d" (
            match n with
            | 0 -> 1
            | 1 -> 0
            )

    //exit
    0
0