結果

問題 No.677 10^Nの約数
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-09 00:22:15
言語 Ruby
(3.3.0)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 11,568 KB
実行使用メモリ 15,424 KB
最終ジャッジ日時 2023-09-29 21:48:28
合計ジャッジ時間 2,653 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
15,416 KB
testcase_01 AC 88 ms
15,392 KB
testcase_02 AC 87 ms
15,320 KB
testcase_03 AC 86 ms
15,376 KB
testcase_04 AC 86 ms
15,316 KB
testcase_05 AC 86 ms
15,204 KB
testcase_06 AC 87 ms
15,368 KB
testcase_07 AC 87 ms
15,424 KB
testcase_08 AC 87 ms
15,388 KB
testcase_09 AC 88 ms
15,416 KB
testcase_10 AC 87 ms
15,144 KB
testcase_11 AC 88 ms
15,420 KB
testcase_12 AC 86 ms
15,108 KB
testcase_13 AC 87 ms
15,240 KB
testcase_14 AC 87 ms
15,316 KB
testcase_15 AC 88 ms
15,388 KB
testcase_16 AC 87 ms
15,400 KB
testcase_17 AC 87 ms
15,196 KB
testcase_18 AC 87 ms
15,424 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require "prime"
N=gets.to_i
puts N == 0 \
? 1 \
: Prime.prime_division(10 ** N).map{|x| (0..x[1]).map{|e| x[0]**e }}.reduce{|as, bs| as.map{|a| bs.map{|b| a * b }}}.flatten.sort
0