結果

問題 No.700 LOVE
ユーザー 情報学生情報学生
提出日時 2019-08-19 23:40:37
言語 Haskell
(9.8.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 246 bytes
コンパイル時間 3,721 ms
コンパイル使用メモリ 154,584 KB
実行使用メモリ 7,668 KB
最終ジャッジ日時 2023-09-30 05:43:08
合計ジャッジ時間 2,065 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,688 KB
testcase_01 AC 3 ms
6,896 KB
testcase_02 AC 3 ms
6,984 KB
testcase_03 AC 2 ms
6,800 KB
testcase_04 AC 2 ms
6,792 KB
testcase_05 AC 2 ms
6,844 KB
testcase_06 AC 2 ms
6,916 KB
testcase_07 AC 3 ms
6,996 KB
testcase_08 AC 2 ms
6,860 KB
testcase_09 AC 3 ms
6,900 KB
testcase_10 AC 3 ms
7,480 KB
testcase_11 AC 3 ms
6,896 KB
testcase_12 AC 3 ms
7,312 KB
testcase_13 AC 3 ms
7,144 KB
testcase_14 AC 3 ms
7,544 KB
testcase_15 AC 4 ms
7,592 KB
testcase_16 AC 3 ms
7,668 KB
testcase_17 AC 4 ms
7,336 KB
testcase_18 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

import Data.List.Split ( splitOn )

main = do
    getLine
    getLine
    xss <- words <$> getContents
    let p = filter id $ map ((\x -> if x > 1 then True else False) . length . splitOn "LOVE") xss
    putStrLn $ if null p then "NO" else "YES"
0