結果
問題 | No.256 桁の数字を入れ替え (2) |
ユーザー | ducktail |
提出日時 | 2018-02-05 15:03:19 |
言語 | Haskell (9.8.2) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 245 bytes |
コンパイル時間 | 1,495 ms |
コンパイル使用メモリ | 154,956 KB |
実行使用メモリ | 7,796 KB |
最終ジャッジ日時 | 2023-09-22 00:55:46 |
合計ジャッジ時間 | 2,353 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
7,348 KB |
testcase_01 | AC | 3 ms
7,328 KB |
testcase_02 | AC | 3 ms
7,796 KB |
testcase_03 | AC | 4 ms
7,792 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
ソースコード
import Control.Applicative ((<$>)) import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString.Char8 as B main :: IO () main = do solve <$> B.getLine >>= B.putStrLn solve :: ByteString -> ByteString solve = B.reverse . B.sort