結果
問題 | No.646 逆ピラミッド |
ユーザー |
![]() |
提出日時 | 2018-02-09 22:43:14 |
言語 | Haskell (9.10.1) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 215 bytes |
コンパイル時間 | 8,653 ms |
コンパイル使用メモリ | 175,948 KB |
実行使用メモリ | 5,632 KB |
最終ジャッジ日時 | 2024-10-08 16:34:00 |
合計ジャッジ時間 | 7,712 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
constPyramid::Int->StringconstPyramid n = unlines lswherels = [concat $ replicate i $ show n | i <- [n, n - 1 .. 1]]main::IO()main = don <- readLn :: IO IntputStr $ constPyramid n