結果

問題 No.558 575検出するやつ
ユーザー taktak
提出日時 2018-03-23 10:01:43
言語 F#
(F# 4.0)
結果
AC  
実行時間 108 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 5,095 ms
コンパイル使用メモリ 161,100 KB
実行使用メモリ 28,964 KB
最終ジャッジ日時 2023-09-07 02:21:13
合計ジャッジ時間 9,119 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
24,788 KB
testcase_01 AC 104 ms
26,876 KB
testcase_02 AC 103 ms
26,908 KB
testcase_03 AC 104 ms
27,064 KB
testcase_04 AC 105 ms
26,944 KB
testcase_05 AC 105 ms
28,924 KB
testcase_06 AC 105 ms
26,828 KB
testcase_07 AC 105 ms
26,872 KB
testcase_08 AC 106 ms
28,896 KB
testcase_09 AC 105 ms
28,888 KB
testcase_10 AC 76 ms
24,660 KB
testcase_11 AC 105 ms
28,964 KB
testcase_12 AC 104 ms
24,748 KB
testcase_13 AC 106 ms
26,976 KB
testcase_14 AC 105 ms
26,836 KB
testcase_15 AC 108 ms
28,872 KB
testcase_16 AC 105 ms
26,784 KB
testcase_17 AC 76 ms
24,668 KB
testcase_18 AC 76 ms
24,608 KB
testcase_19 AC 104 ms
28,876 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

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"
0