結果

問題 No.676 C0nvertPr0b1em
ユーザー LeonardoneLeonardone
提出日時 2018-06-09 09:52:59
言語 Haskell
(9.8.2)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 365 bytes
コンパイル時間 2,770 ms
コンパイル使用メモリ 154,472 KB
実行使用メモリ 8,428 KB
最終ジャッジ日時 2023-09-05 17:18:15
合計ジャッジ時間 2,469 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,896 KB
testcase_01 AC 3 ms
7,068 KB
testcase_02 AC 5 ms
7,376 KB
testcase_03 AC 12 ms
8,252 KB
testcase_04 AC 12 ms
8,196 KB
testcase_05 AC 12 ms
8,052 KB
testcase_06 AC 4 ms
7,484 KB
testcase_07 AC 5 ms
7,612 KB
testcase_08 AC 3 ms
7,088 KB
testcase_09 AC 2 ms
6,816 KB
testcase_10 AC 12 ms
8,428 KB
testcase_11 AC 12 ms
8,204 KB
testcase_12 AC 6 ms
7,852 KB
testcase_13 AC 5 ms
7,272 KB
testcase_14 AC 3 ms
6,900 KB
testcase_15 AC 4 ms
7,228 KB
testcase_16 AC 12 ms
8,124 KB
testcase_17 AC 4 ms
7,168 KB
testcase_18 AC 3 ms
7,004 KB
testcase_19 AC 2 ms
6,864 KB
testcase_20 AC 5 ms
7,420 KB
testcase_21 AC 4 ms
7,536 KB
testcase_22 AC 12 ms
8,232 KB
testcase_23 AC 3 ms
6,760 KB
testcase_24 AC 2 ms
6,776 KB
testcase_25 AC 2 ms
6,768 KB
testcase_26 AC 2 ms
6,868 KB
testcase_27 AC 2 ms
6,784 KB
testcase_28 AC 2 ms
6,760 KB
testcase_29 AC 3 ms
6,800 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 #

-- yukicoder My Practice
-- author: Leonardone @ NEETSDKASU

main = getLine >>= putStrLn . last . flip (scanl (flip ($))) (map ((. replicate 2) . foldl1 . uncurry ((. (. map (splitAt 1 . replicate 2)) . filter . (. fst) . (/=)) . (.) . (((concat .) . map . (. return)) .) . (. flip lookup) . (.) . flip maybe id))  [("0", "o"), ("0", "O"), ("1", "I"), ("1", "l")])
0