結果
| 問題 |
No.721 Die tertia (ディエ・テルツィア)
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2018-12-08 17:58:10 |
| 言語 | Haskell (9.10.1) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 380 bytes |
| コンパイル時間 | 211 ms |
| コンパイル使用メモリ | 148,992 KB |
| 最終ジャッジ日時 | 2024-09-14 04:33:49 |
| 合計ジャッジ時間 | 560 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
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:3:1: error: [GHC-87110]
Could not load module ‘Data.Time.Calendar’.
It is a member of the hidden package ‘time-1.12.2’.
Use -v to see a list of the files searched for.
|
3 | import Data.Time.Calendar
| ^^^^^^^^^^^^^^^^^^^^^^^^^
Main.hs:4:1: error: [GHC-87110]
Could not load module ‘Data.Time.LocalTime’.
It is a member of the hidden package ‘time-1.12.2’.
Use -v to see a list of the files searched for.
|
4 | import Data.Time.LocalTime
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
Main.hs:5:1: error: [GHC-87110]
Could not load module ‘Data.Time.Format’.
It is a member of the hidden package ‘time-1.12.2’.
Use -v to see a list of the files searched for.
|
5 | import Data.Time.Format
| ^^^^^^^^^^^^^^^^^^^^^^^
ソースコード
import Data.List
import Data.List
import Data.Time.Calendar
import Data.Time.LocalTime
import Data.Time.Format
main = do
e<-getLine
let yyyy=read(take 4 e)::Integer
mm=read(take 2 ( drop 5 e))::Int
dd=read(take 2 (drop 8 e))::Int
ans=addDays 2 $ fromGregorian yyyy mm dd
putStrLn $ formatTime defaultTimeLocale "%Y/%m/%d" ans
horiesiniti