結果

問題 No.780 オフ会
ユーザー chike_pluschike_plus
提出日時 2019-03-08 22:37:53
言語 F#
(.NET 7)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 3,335 ms
コンパイル使用メモリ 161,500 KB
実行使用メモリ 24,128 KB
最終ジャッジ日時 2023-09-05 19:45:35
合計ジャッジ時間 5,771 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,980 KB
testcase_01 AC 59 ms
24,012 KB
testcase_02 AC 60 ms
24,016 KB
testcase_03 AC 60 ms
21,964 KB
testcase_04 AC 59 ms
22,200 KB
testcase_05 AC 60 ms
24,084 KB
testcase_06 AC 59 ms
21,964 KB
testcase_07 AC 60 ms
22,024 KB
testcase_08 AC 61 ms
22,088 KB
testcase_09 AC 60 ms
24,004 KB
testcase_10 AC 60 ms
24,016 KB
testcase_11 AC 60 ms
22,028 KB
testcase_12 AC 60 ms
22,072 KB
testcase_13 AC 60 ms
24,060 KB
testcase_14 AC 60 ms
24,076 KB
testcase_15 AC 59 ms
22,260 KB
testcase_16 AC 60 ms
24,020 KB
testcase_17 AC 60 ms
22,016 KB
testcase_18 AC 60 ms
22,128 KB
testcase_19 AC 61 ms
24,068 KB
testcase_20 AC 60 ms
21,988 KB
testcase_21 AC 60 ms
22,204 KB
testcase_22 AC 60 ms
24,128 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 A , B = Console.ReadLine().Split(' ') 
            |> (fun x -> int x.[0] , int x.[1] )

match A < B with
| true -> Console.WriteLine "YES"
          Console.WriteLine (B - (A+1))
| false-> Console.WriteLine "NO"
          Console.WriteLine ((A+1) - B)
0