結果
問題 | No.646 逆ピラミッド |
ユーザー |
![]() |
提出日時 | 2018-04-07 06:39:49 |
言語 | Haskell (9.10.1) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 579 bytes |
コンパイル時間 | 1,787 ms |
コンパイル使用メモリ | 171,008 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 10:57:05 |
合計ジャッジ時間 | 2,537 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 ) Main.hs:22:1: warning: [GHC-94817] [-Wtabs] Tab character found here, and in one further location. Suggested fix: Please use spaces instead. | 22 | n <- readInt | ^^^^^^^^ [2 of 2] Linking a.out
ソースコード
LANGUAGELANGUAGEimportControl.ApplicativeimportControl.MonadimportControl.ArrowimportData.ListimportData.MaybeimportData.CharimportqualifiedData.ByteString.CharasBimportText.PrintfreadInt = ( readLn :: IO Int )readInts = map ( read :: String -> Int ) . words <$> getLinegetList = map ( fst . fromJust . B.readInt ) . B.words <$> B.getLinewhich a b f = if f then a else bmp [ a, b ] = ( a, b )main = don <- readIntmapM_ putStrLn $ map ( \x -> concat $ replicate x $ show n ) $ reverse [ 1 .. n ]