結果

問題 No.1005 BOT対策
ユーザー ikdikd
提出日時 2020-05-04 21:29:00
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 377 bytes
コンパイル時間 3,621 ms
コンパイル使用メモリ 164,556 KB
実行使用メモリ 27,804 KB
最終ジャッジ日時 2023-09-07 05:43:20
合計ジャッジ時間 8,999 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
23,668 KB
testcase_01 AC 106 ms
23,684 KB
testcase_02 AC 107 ms
25,672 KB
testcase_03 AC 108 ms
23,696 KB
testcase_04 WA -
testcase_05 AC 107 ms
23,804 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 107 ms
27,796 KB
testcase_09 AC 106 ms
21,548 KB
testcase_10 AC 105 ms
25,640 KB
testcase_11 AC 105 ms
23,672 KB
testcase_12 WA -
testcase_13 AC 106 ms
23,652 KB
testcase_14 AC 106 ms
23,660 KB
testcase_15 AC 107 ms
25,752 KB
testcase_16 AC 105 ms
23,724 KB
testcase_17 AC 106 ms
25,640 KB
testcase_18 AC 106 ms
25,756 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 106 ms
25,716 KB
testcase_22 AC 105 ms
21,600 KB
testcase_23 AC 105 ms
23,804 KB
testcase_24 AC 105 ms
21,672 KB
testcase_25 AC 106 ms
23,668 KB
testcase_26 AC 105 ms
23,740 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 106 ms
25,760 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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)
        else solve (i + 1)
    solve 0 |> printfn "%A"
    0 // return an integer exit code
0