记录详情

Wrong Answer

[1 of 1] Compiling Main             ( /in/foo.hs, /tmp/Main.o )
Linking /out/foo ...
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 472.0 KiB
#2 Wrong Answer 4ms 488.0 KiB
#3 Wrong Answer 3ms 472.0 KiB
#4 Wrong Answer 3ms 484.0 KiB
#5 Wrong Answer 3ms 384.0 KiB
#6 Wrong Answer 3ms 500.0 KiB
#7 Wrong Answer 3ms 492.0 KiB
#8 Wrong Answer 3ms 384.0 KiB
#9 Wrong Answer 2ms 488.0 KiB
#10 Wrong Answer 2ms 496.0 KiB

代码

module Main where

import Data.Char

main = print . count . show . calc . words =<< getLine
  where
    calc :: [String] -> Int
    calc [a, b] = (read a) ^ (read b)

    count :: String -> Int
    count = sum . map orz

    orz :: Char -> Int
    orz ch = ord ch - 48

信息

递交者
类型
递交
题目
观铃题
语言
Haskell
递交时间
2018-07-24 14:28:20
评测时间
2018-07-24 14:28:20
评测机
分数
0
总耗时
36ms
峰值内存
500.0 KiB