結果

問題 No.643 Two Operations No.2
ユーザー taktak
提出日時 2018-03-18 16:53:42
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 222 bytes
コンパイル時間 5,395 ms
コンパイル使用メモリ 163,524 KB
実行使用メモリ 26,932 KB
最終ジャッジ日時 2023-08-27 07:31:06
合計ジャッジ時間 7,589 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
22,832 KB
testcase_01 AC 84 ms
24,792 KB
testcase_02 AC 84 ms
20,748 KB
testcase_03 AC 82 ms
22,832 KB
testcase_04 AC 84 ms
22,956 KB
testcase_05 AC 84 ms
24,836 KB
testcase_06 WA -
testcase_07 AC 83 ms
22,752 KB
testcase_08 WA -
testcase_09 AC 83 ms
22,788 KB
testcase_10 AC 83 ms
24,788 KB
testcase_11 AC 84 ms
24,852 KB
testcase_12 AC 82 ms
24,816 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          -> 1
| 0,_          -> 2
| _            -> -1
|> printfn "%i" 
0