結果

問題 No.1005 BOT対策
ユーザー ikdikd
提出日時 2020-05-04 21:31:08
言語 F#
(F# 4.0)
結果
MLE  
実行時間 -
コード長 381 bytes
コンパイル時間 3,566 ms
コンパイル使用メモリ 164,684 KB
実行使用メモリ 821,528 KB
最終ジャッジ日時 2023-09-07 05:46:09
合計ジャッジ時間 7,005 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
25,676 KB
testcase_01 AC 106 ms
25,656 KB
testcase_02 AC 106 ms
25,764 KB
testcase_03 AC 105 ms
25,764 KB
testcase_04 MLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

// Learn more about F# at http://fsharp.org

open System

[<EntryPoint>]
let main argv =
    let s = stdin.ReadLine()
    let t = stdin.ReadLine()

    let rec solve i =
        if i + t.Length > s.Length then 0
        elif s.[i..(i + t.Length - 1)] = t then 1 + solve (i + t.Length - 1)
        else solve (i + 1)
    solve 0 |> printfn "%A"
    0 // return an integer exit code
0