結果
| 問題 |
No.353 ヘイトプラス
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-30 14:27:15 |
| 言語 | Haskell (9.10.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 275 bytes |
| コンパイル時間 | 5,166 ms |
| コンパイル使用メモリ | 171,648 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-03 22:25:54 |
| 合計ジャッジ時間 | 5,805 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/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