結果

問題 No.495 (^^*) Easy
ユーザー LeonardoneLeonardone
提出日時 2017-03-25 00:15:08
言語 Haskell
(9.8.2)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 4,451 ms
コンパイル使用メモリ 151,368 KB
実行使用メモリ 14,948 KB
最終ジャッジ日時 2023-09-20 07:06:19
合計ジャッジ時間 3,228 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,600 KB
testcase_01 AC 3 ms
6,712 KB
testcase_02 AC 2 ms
6,556 KB
testcase_03 AC 3 ms
6,648 KB
testcase_04 AC 3 ms
6,796 KB
testcase_05 AC 5 ms
8,780 KB
testcase_06 AC 22 ms
14,948 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 #

-- Try yukicoder
-- author: Leonardone @ NEETSDKASU

main = getLine >>= putStrLn . unwords . map show . solve 0 0

solve a b s 
    | d == "(^^*)" = solve (a + 1) b t
    | d == "(*^^)" = solve a (b + 1) t
    | otherwise = [a, b]
    where (d, t) = splitAt 5 s
        
0