結果

問題 No.2298 yukicounter
ユーザー mtwtkmanmtwtkman
提出日時 2023-05-14 11:14:39
言語 Haskell
(9.8.2)
結果
AC  
実行時間 235 ms / 2,000 ms
コード長 327 bytes
コンパイル時間 7,527 ms
コンパイル使用メモリ 164,112 KB
実行使用メモリ 73,528 KB
最終ジャッジ日時 2023-08-20 01:49:01
合計ジャッジ時間 4,267 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,436 KB
testcase_01 AC 2 ms
6,444 KB
testcase_02 AC 3 ms
6,500 KB
testcase_03 AC 142 ms
53,344 KB
testcase_04 AC 52 ms
23,532 KB
testcase_05 AC 9 ms
12,172 KB
testcase_06 AC 235 ms
73,528 KB
testcase_07 AC 43 ms
21,260 KB
testcase_08 AC 12 ms
13,336 KB
testcase_09 AC 33 ms
16,876 KB
testcase_10 AC 5 ms
9,132 KB
testcase_11 AC 33 ms
18,964 KB
testcase_12 AC 32 ms
18,872 KB
testcase_13 AC 32 ms
16,780 KB
testcase_14 AC 32 ms
17,616 KB
testcase_15 AC 2 ms
6,720 KB
testcase_16 AC 12 ms
12,352 KB
testcase_17 AC 8 ms
11,324 KB
testcase_18 AC 3 ms
6,496 KB
testcase_19 AC 2 ms
6,532 KB
testcase_20 AC 2 ms
6,516 KB
testcase_21 AC 3 ms
6,464 KB
testcase_22 AC 33 ms
17,720 KB
testcase_23 AC 22 ms
15,108 KB
testcase_24 AC 123 ms
37,432 KB
testcase_25 AC 62 ms
26,124 KB
testcase_26 AC 22 ms
14,280 KB
testcase_27 AC 102 ms
37,464 KB
testcase_28 AC 22 ms
14,088 KB
testcase_29 AC 12 ms
13,000 KB
testcase_30 AC 3 ms
7,304 KB
testcase_31 AC 12 ms
11,652 KB
testcase_32 AC 22 ms
14,508 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 #

solve :: String -> Int
solve = fst . go (0,0)
  where
    go :: (Int,Int) -> String -> (Int,Int)
    go (n,acc) "" = (max acc n, 0)
    go (n,acc) ('y' : 'u' : 'k' : 'i' : 'c' : 'o' : 'd' : 'e' : 'r' : xs) = go (n, acc+1) xs
    go (n,acc) (_:xs) = go (max acc n, 0) xs

main :: IO ()
main = do
  s <- getLine
  print $ solve s
0