結果

問題 No.677 10^Nの約数
ユーザー ducktailducktail
提出日時 2018-04-27 23:39:20
言語 Haskell
(9.8.2)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 6,044 ms
コンパイル使用メモリ 159,432 KB
実行使用メモリ 7,760 KB
最終ジャッジ日時 2023-09-10 06:59:43
合計ジャッジ時間 7,515 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,928 KB
testcase_01 AC 3 ms
7,128 KB
testcase_02 AC 2 ms
7,132 KB
testcase_03 AC 2 ms
7,144 KB
testcase_04 AC 2 ms
7,160 KB
testcase_05 AC 2 ms
7,100 KB
testcase_06 AC 3 ms
7,300 KB
testcase_07 AC 3 ms
7,248 KB
testcase_08 AC 3 ms
7,224 KB
testcase_09 AC 2 ms
7,276 KB
testcase_10 AC 3 ms
7,240 KB
testcase_11 AC 3 ms
7,372 KB
testcase_12 AC 3 ms
7,464 KB
testcase_13 AC 3 ms
7,432 KB
testcase_14 AC 3 ms
7,484 KB
testcase_15 AC 3 ms
7,624 KB
testcase_16 AC 3 ms
7,624 KB
testcase_17 AC 3 ms
7,664 KB
testcase_18 AC 3 ms
7,760 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

import Control.Applicative ((<$>))
import Data.List (sort)

main :: IO ()
main = solve <$> readLn >>= mapM_ print

solve :: Int -> [Int]
solve n = sort [2 ^ i * 5 ^ j | i <- [0..n], j <- [0..n]]
0