結果
問題 |
No.1005 BOT対策
|
ユーザー |
![]() |
提出日時 | 2020-05-04 21:31:08 |
言語 | F# (F# 4.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 381 bytes |
コンパイル時間 | 11,456 ms |
コンパイル使用メモリ | 184,860 KB |
実行使用メモリ | 827,264 KB |
最終ジャッジ日時 | 2024-06-25 00:13:17 |
合計ジャッジ時間 | 13,827 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 MLE * 1 -- * 25 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (258 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 - 1) else solve (i + 1) solve 0 |> printfn "%A" 0 // return an integer exit code