結果

問題 No.272 NOT回路
ユーザー chike_pluschike_plus
提出日時 2019-03-26 12:28:51
言語 F#
(F# 4.0)
結果
AC  
実行時間 48 ms / 1,000 ms
コード長 235 bytes
コンパイル時間 6,461 ms
コンパイル使用メモリ 186,516 KB
実行使用メモリ 28,544 KB
最終ジャッジ日時 2024-04-19 08:42:26
合計ジャッジ時間 7,662 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
28,156 KB
testcase_01 AC 48 ms
28,416 KB
testcase_02 AC 48 ms
28,544 KB
testcase_03 AC 48 ms
28,416 KB
testcase_04 AC 48 ms
28,544 KB
testcase_05 AC 48 ms
28,260 KB
testcase_06 AC 48 ms
28,392 KB
testcase_07 AC 48 ms
28,544 KB
testcase_08 AC 48 ms
28,288 KB
testcase_09 AC 48 ms
28,544 KB
testcase_10 AC 48 ms
28,416 KB
testcase_11 AC 47 ms
28,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (220 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

let ``No.272 NOT回路``() =

  let (|Zero|One|) arg = if arg = "0" then Zero else One

  stdin.ReadLine()
  |> fun arg ->
    match arg with
    | Zero -> stdout.WriteLine "1"
    | One  -> stdout.WriteLine "0"

``No.272 NOT回路``()
0