結果
問題 | No.353 ヘイトプラス |
ユーザー | highd |
提出日時 | 2016-11-30 14:27:15 |
言語 | Haskell (9.8.2) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 275 bytes |
コンパイル時間 | 1,284 ms |
コンパイル使用メモリ | 166,836 KB |
実行使用メモリ | 6,972 KB |
最終ジャッジ日時 | 2023-09-16 23:50:43 |
合計ジャッジ時間 | 1,659 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
6,972 KB |
testcase_01 | AC | 3 ms
6,748 KB |
testcase_02 | AC | 2 ms
6,788 KB |
testcase_03 | AC | 2 ms
6,816 KB |
testcase_04 | AC | 2 ms
6,808 KB |
testcase_05 | AC | 2 ms
6,832 KB |
testcase_06 | AC | 2 ms
6,776 KB |
testcase_07 | AC | 2 ms
6,880 KB |
testcase_08 | AC | 2 ms
6,848 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 ) Main.hs:12:1: warning: [GHC-94817] [-Wtabs] Tab character found here, and in 8 further locations. Suggested fix: Please use spaces instead. | 12 | putStrLn | ^^^^^^^^ [2 of 2] Linking a.out
ソースコード
import Data.Monoid import Data.Text import Data.Functor toTuple::[a]->(a,a) toTuple (a:b:_) = (a,b) readInt::String->Int readInt=read main = putStrLn =<<show <$>getSum <$>uncurry (<>) <$>toTuple <$>fmap ((Sum).readInt.unpack) <$>split (==' ') <$>pack <$>getLine