結果

問題 No.677 10^Nの約数
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-02-04 23:51:15
言語 Ruby
(3.3.0)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 162 bytes
コンパイル時間 50 ms
コンパイル使用メモリ 11,956 KB
実行使用メモリ 16,080 KB
最終ジャッジ日時 2023-10-21 06:42:10
合計ジャッジ時間 2,692 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
16,080 KB
testcase_01 AC 85 ms
16,080 KB
testcase_02 AC 81 ms
16,080 KB
testcase_03 AC 82 ms
16,080 KB
testcase_04 AC 77 ms
16,080 KB
testcase_05 AC 74 ms
16,080 KB
testcase_06 AC 86 ms
16,080 KB
testcase_07 AC 77 ms
16,080 KB
testcase_08 AC 80 ms
16,080 KB
testcase_09 AC 77 ms
16,080 KB
testcase_10 AC 73 ms
16,080 KB
testcase_11 AC 74 ms
16,076 KB
testcase_12 AC 78 ms
16,080 KB
testcase_13 AC 76 ms
16,080 KB
testcase_14 AC 80 ms
16,080 KB
testcase_15 AC 79 ms
16,080 KB
testcase_16 AC 76 ms
16,080 KB
testcase_17 AC 84 ms
16,080 KB
testcase_18 AC 76 ms
16,080 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.chomp.to_i
a = (0..n).to_a.map{|i| 2**i}
b = (0..n).to_a.map{|i| 5**i}
c = []
a.each do |ai|
  b.each do |bi|
    c << ai * bi
  end
end
puts c.uniq.sort
0