結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-26 22:43:18 |
| 言語 | Haskell (9.10.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 250 bytes |
| コンパイル時間 | 2,186 ms |
| コンパイル使用メモリ | 180,164 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-21 20:13:21 |
| 合計ジャッジ時間 | 2,298 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
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:6:8: warning: [GHC-68441] [-Wdeprecations]
In the use of ‘getLine’ (imported from Data.ByteString):
Deprecated: "Deprecated since @bytestring-0.12@. Use 'Data.ByteString.Char8.getLine' instead. (Functions that rely on ASCII encodings belong in "Data.ByteString.Char8")"
|
6 | main = BS.getLine >>= print.ceiling.(\[x, y] -> fromIntegral y / fromIntegral x).map (fst.fromJust.BC.readInteger).BC.words
| ^^^^^^^^^^
[2 of 2] Linking a.out
ソースコード
import qualified Data.ByteString as BS import qualified Data.ByteString.Char8 as BC import Data.Maybe(fromJust) main :: IO () main = BS.getLine >>= print.ceiling.(\[x, y] -> fromIntegral y / fromIntegral x).map (fst.fromJust.BC.readInteger).BC.words