結果

問題 No.780 オフ会
ユーザー chike_plus
提出日時 2019-03-08 22:37:53
言語 F#
(F# 4.0)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 6,603 ms
コンパイル使用メモリ 187,716 KB
実行使用メモリ 29,428 KB
最終ジャッジ日時 2024-06-23 15:08:50
合計ジャッジ時間 8,839 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (215 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 #

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