結果
問題 |
No.1005 BOT対策
|
ユーザー |
![]() |
提出日時 | 2020-05-04 21:29:00 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 377 bytes |
コンパイル時間 | 6,420 ms |
コンパイル使用メモリ | 190,728 KB |
実行使用メモリ | 32,256 KB |
最終ジャッジ日時 | 2024-06-25 00:10:15 |
合計ジャッジ時間 | 10,072 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 8 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (224 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/
ソースコード
// 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