結果

問題 No.780 オフ会
ユーザー chikepluschikeplus
提出日時 2019-01-24 12:44:49
言語 F#
(F# 4.0)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 3,406 ms
コンパイル使用メモリ 162,728 KB
実行使用メモリ 25,132 KB
最終ジャッジ日時 2023-10-14 09:37:35
合計ジャッジ時間 6,094 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
24,972 KB
testcase_01 AC 75 ms
22,988 KB
testcase_02 AC 77 ms
23,012 KB
testcase_03 AC 78 ms
22,988 KB
testcase_04 AC 75 ms
25,048 KB
testcase_05 AC 73 ms
22,924 KB
testcase_06 AC 74 ms
20,944 KB
testcase_07 AC 75 ms
21,052 KB
testcase_08 AC 74 ms
22,976 KB
testcase_09 AC 75 ms
23,132 KB
testcase_10 AC 75 ms
23,072 KB
testcase_11 AC 76 ms
25,072 KB
testcase_12 AC 75 ms
23,000 KB
testcase_13 AC 76 ms
25,132 KB
testcase_14 AC 79 ms
24,944 KB
testcase_15 AC 75 ms
23,024 KB
testcase_16 AC 74 ms
23,020 KB
testcase_17 AC 80 ms
25,052 KB
testcase_18 AC 85 ms
23,032 KB
testcase_19 AC 84 ms
22,936 KB
testcase_20 AC 77 ms
23,032 KB
testcase_21 AC 78 ms
23,060 KB
testcase_22 AC 74 ms
23,012 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

/home/judge/data/code/Main.fs(7,5): warning FS0026: This rule will never be matched

ソースコード

diff #

let inputs = System.Console.ReadLine().Split(' ')
let args = seq{ for str in inputs do yield int(str) }

let matchPair a  b =
  match a,b with
  | a,b   -> (a + 1) - b
  | _,_   -> 0

let res = matchPair (Seq.head args) (Seq.item 1 args)
printfn "%s" (if res <= 0 then "YES" else "NO")
printfn "%i" (System.Math.Abs(res))
0