結果

問題 No.643 Two Operations No.2
ユーザー taktak
提出日時 2018-03-18 16:55:08
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 5,173 ms
コンパイル使用メモリ 158,688 KB
実行使用メモリ 26,844 KB
最終ジャッジ日時 2023-08-27 07:33:59
合計ジャッジ時間 7,245 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
24,908 KB
testcase_01 AC 82 ms
22,920 KB
testcase_02 AC 82 ms
22,856 KB
testcase_03 AC 82 ms
24,952 KB
testcase_04 AC 81 ms
22,904 KB
testcase_05 AC 82 ms
24,804 KB
testcase_06 WA -
testcase_07 AC 79 ms
20,872 KB
testcase_08 WA -
testcase_09 AC 81 ms
22,984 KB
testcase_10 AC 81 ms
24,856 KB
testcase_11 AC 80 ms
22,804 KB
testcase_12 AC 78 ms
22,836 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
| _            -> -1
| _ when abs X = abs Y -> 3
|> printfn "%i" 
0