結果

問題 No.643 Two Operations No.2
ユーザー taktak
提出日時 2018-03-18 16:56:03
言語 F#
(F# 4.0)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 3,041 ms
コンパイル使用メモリ 162,468 KB
実行使用メモリ 24,876 KB
最終ジャッジ日時 2023-08-27 07:34:26
合計ジャッジ時間 4,903 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
24,876 KB
testcase_01 AC 81 ms
22,856 KB
testcase_02 AC 81 ms
24,852 KB
testcase_03 AC 81 ms
22,924 KB
testcase_04 AC 82 ms
20,780 KB
testcase_05 AC 81 ms
20,884 KB
testcase_06 AC 80 ms
22,988 KB
testcase_07 AC 80 ms
22,820 KB
testcase_08 AC 83 ms
22,916 KB
testcase_09 AC 83 ms
22,884 KB
testcase_10 AC 81 ms
22,928 KB
testcase_11 AC 81 ms
22,808 KB
testcase_12 AC 82 ms
24,876 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

open System

let X,Y = 
    let t = Console.ReadLine().Split()
            |> Array.map(int)
    t.[0],t.[1]

match X,Y with
| _ when X = Y -> 0
| 0,_          -> 2
| _,0          -> 1
| _ when X = -Y -> 3
| _            -> -1
|> printfn "%i" 
0