记录详情

Accepted

[1 of 1] Compiling Main             ( foo.hs, /tmp/Main.o )
Linking code ...
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 512.0 KiB
#2 Accepted 2ms 604.0 KiB
#3 Accepted 1ms 512.0 KiB
#4 Accepted 34ms 2.191 MiB
#5 Accepted 39ms 2.078 MiB
#6 Accepted 25ms 2.055 MiB
#7 Accepted 69ms 2.562 MiB
#8 Accepted 84ms 2.816 MiB
#9 Accepted 81ms 2.781 MiB
#10 Accepted 82ms 2.824 MiB

代码

module Main where

import Data.Char

main = print . count . show . calc . words =<< getLine
  where
    calc :: [String] -> Integer
    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:30:55
评测时间
2021-10-21 22:14:40
评测机
分数
100
总耗时
423ms
峰值内存
2.824 MiB