結果
問題 |
No.558 575検出するやつ
|
ユーザー |
![]() |
提出日時 | 2018-03-23 10:01:43 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 76 ms / 2,000 ms |
コード長 | 228 bytes |
コンパイル時間 | 13,807 ms |
コンパイル使用メモリ | 184,408 KB |
実行使用メモリ | 30,832 KB |
最終ジャッジ日時 | 2024-06-24 21:01:52 |
合計ジャッジ時間 | 15,007 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 15 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (426 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/
ソースコード
open System let cnt = Console.ReadLine().ToCharArray() |> Array.windowed 3 |> Array.map ((=)[|'5';'7';'5'|]) |> Array.where((=)true) |> Array.length match cnt with | 0 -> "NO" | _ -> "YES" |> printfn "%s"