結果
| 問題 | No.383 レーティング |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-27 18:15:34 |
| 言語 | Haskell (9.14.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 2,000 ms |
| + 148µs | |
| コード長 | 273 bytes |
| 記録 | |
| コンパイル時間 | 5,682 ms |
| コンパイル使用メモリ | 198,016 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-09 03:47:32 |
| 合計ジャッジ時間 | 7,185 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.14.1/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
import Control.Applicative (liftA3)
import Data.Bool (bool)
getNums = map (read :: String -> Int) . words <$> getLine
toStr = liftA3 bool show' (("+" ++) . show') (> 0)
where
show' = show :: Int -> String
main = getNums >>= putStrLn . toStr . foldl1 (-) . reverse