結果
| 問題 |
No.388 階段 (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-26 22:47:18 |
| 言語 | Haskell (9.10.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 225 bytes |
| コンパイル時間 | 2,014 ms |
| コンパイル使用メモリ | 180,288 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-21 20:13:29 |
| 合計ジャッジ時間 | 2,665 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
コンパイルメッセージ
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.(+1).(\[x, y] -> x `div` y).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.(+1).(\[x, y] -> x `div` y).map (fst.fromJust.BC.readInteger).BC.words