結果

問題 No.805 UMG
ユーザー natoriusannatoriusan
提出日時 2023-08-01 15:28:17
言語 F#
(F# 4.0)
結果
AC  
実行時間 455 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 10,085 ms
コンパイル使用メモリ 191,724 KB
実行使用メモリ 73,216 KB
最終ジャッジ日時 2024-04-19 14:42:36
合計ジャッジ時間 19,231 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 306 ms
35,456 KB
testcase_01 AC 305 ms
35,848 KB
testcase_02 AC 318 ms
35,792 KB
testcase_03 AC 304 ms
35,672 KB
testcase_04 AC 303 ms
35,148 KB
testcase_05 AC 307 ms
34,940 KB
testcase_06 AC 305 ms
35,452 KB
testcase_07 AC 309 ms
35,412 KB
testcase_08 AC 307 ms
35,672 KB
testcase_09 AC 308 ms
35,528 KB
testcase_10 AC 313 ms
34,932 KB
testcase_11 AC 340 ms
35,784 KB
testcase_12 AC 300 ms
34,940 KB
testcase_13 AC 312 ms
35,420 KB
testcase_14 AC 310 ms
34,940 KB
testcase_15 AC 316 ms
36,152 KB
testcase_16 AC 323 ms
35,976 KB
testcase_17 AC 314 ms
35,784 KB
testcase_18 AC 323 ms
36,508 KB
testcase_19 AC 315 ms
35,876 KB
testcase_20 AC 321 ms
37,056 KB
testcase_21 AC 317 ms
36,288 KB
testcase_22 AC 315 ms
36,192 KB
testcase_23 AC 455 ms
72,960 KB
testcase_24 AC 454 ms
72,704 KB
testcase_25 AC 452 ms
73,216 KB
testcase_26 AC 452 ms
73,216 KB
testcase_27 AC 455 ms
72,704 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (278 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/

ソースコード

diff #

let n = stdin.ReadLine () |> int
let s = stdin.ReadLine ()


[|
    for i in 0..(n-1)/2 ->
        [|
            for j in 0..n-3-2*i ->
                s.[j] = 'U' && s.[j+i+1] = 'M' && s.[j+2*i+2] = 'G'
        |]
|] |> Array.concat |> Array.filter id |> Array.length |> printfn "%d"
0