結果
| 問題 | No.1005 BOT対策 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-02 02:02:33 |
| 言語 | OCaml (5.5.1) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 428µs | |
| コード長 | 370 bytes |
| 記録 | |
| コンパイル時間 | 1,083 ms |
| コンパイル使用メモリ | 22,564 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-12 11:16:43 |
| 合計ジャッジ時間 | 2,267 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
コンパイルメッセージ
ocamlfind: [WARNING] Cannot read directory ./stublibs which is mentioned in ld.conf
ソースコード
Scanf.scanf "%s %s" (fun s t ->
let lens = String.length s in
let lent = String.length t in
let rec loop i acc =
if i + lent > lens then acc else
if String.sub s i lent <> t then loop (i + 1) acc else
if lent = 1 then -1 else
loop (i + lent - 1) (acc + 1)
in
loop 0 0 |> Printf.printf "%d\n"
)