結果
問題 | No.1005 BOT対策 |
ユーザー | natoriusan |
提出日時 | 2023-07-30 11:45:16 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 549 bytes |
コンパイル時間 | 10,565 ms |
コンパイル使用メモリ | 189,932 KB |
実行使用メモリ | 57,844 KB |
最終ジャッジ日時 | 2024-04-17 13:03:23 |
合計ジャッジ時間 | 18,651 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 333 ms
34,084 KB |
testcase_01 | AC | 334 ms
34,208 KB |
testcase_02 | AC | 334 ms
34,268 KB |
testcase_03 | AC | 333 ms
34,488 KB |
testcase_04 | AC | 60 ms
29,816 KB |
testcase_05 | AC | 339 ms
34,308 KB |
testcase_06 | AC | 61 ms
29,824 KB |
testcase_07 | AC | 61 ms
29,568 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 334 ms
34,212 KB |
testcase_11 | AC | 335 ms
34,296 KB |
testcase_12 | AC | 353 ms
40,388 KB |
testcase_13 | AC | 337 ms
36,376 KB |
testcase_14 | AC | 346 ms
36,988 KB |
testcase_15 | AC | 339 ms
35,636 KB |
testcase_16 | AC | 337 ms
35,900 KB |
testcase_17 | AC | 334 ms
34,400 KB |
testcase_18 | WA | - |
testcase_19 | AC | 60 ms
29,568 KB |
testcase_20 | AC | 60 ms
29,824 KB |
testcase_21 | AC | 333 ms
34,344 KB |
testcase_22 | AC | 336 ms
34,276 KB |
testcase_23 | AC | 332 ms
34,468 KB |
testcase_24 | AC | 343 ms
37,864 KB |
testcase_25 | AC | 347 ms
39,808 KB |
testcase_26 | AC | 347 ms
39,632 KB |
testcase_27 | AC | 61 ms
29,696 KB |
testcase_28 | AC | 452 ms
57,844 KB |
testcase_29 | AC | 334 ms
34,524 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (408 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/
ソースコード
let mutable s = stdin.ReadLine () let t = stdin.ReadLine () let firstLength = s.Length let length = t.Length let findIndex (str: string) (search: string) = let mutable index = -1 for i in 0..str.Length-search.Length do if index = -1 && str.[i..i+search.Length-1] = search then index <- i index if length = 1 then printfn "-1" else while findIndex s t <> -1 do let index = findIndex s t s <- s.[..index+t.Length-2] + "." + s.[index+t.Length-1..] s.Length - firstLength |> printfn "%d"