結果

問題 No.773 コンテスト
ユーザー taktak
提出日時 2019-02-03 14:44:25
言語 F#
(F# 4.0)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 4,881 ms
コンパイル使用メモリ 157,764 KB
実行使用メモリ 25,096 KB
最終ジャッジ日時 2023-09-20 16:29:13
合計ジャッジ時間 6,817 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
22,920 KB
testcase_01 AC 88 ms
21,068 KB
testcase_02 AC 88 ms
23,024 KB
testcase_03 AC 88 ms
23,020 KB
testcase_04 AC 87 ms
22,984 KB
testcase_05 AC 89 ms
23,020 KB
testcase_06 AC 88 ms
23,120 KB
testcase_07 AC 88 ms
22,916 KB
testcase_08 AC 90 ms
23,060 KB
testcase_09 AC 89 ms
20,884 KB
testcase_10 AC 90 ms
24,968 KB
testcase_11 AC 88 ms
22,976 KB
testcase_12 AC 90 ms
25,028 KB
testcase_13 AC 89 ms
25,032 KB
testcase_14 AC 89 ms
23,020 KB
testcase_15 AC 90 ms
22,988 KB
testcase_16 AC 90 ms
22,972 KB
testcase_17 AC 88 ms
20,864 KB
testcase_18 AC 89 ms
23,048 KB
testcase_19 AC 89 ms
23,012 KB
testcase_20 AC 90 ms
23,024 KB
testcase_21 AC 88 ms
23,032 KB
testcase_22 AC 87 ms
25,096 KB
testcase_23 AC 87 ms
23,164 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let f a b =
    let pc = [ 23 .. 25 ]
    let travel = [ a .. b]
    let ng = travel |> List.where(fun x -> List.contains x pc) |> List.length
    3 - ng

let A, B = let t = stdin.ReadLine().Split() |> Array.map int in t.[0], t.[1]

f A B
|> printfn "%i"
0