結果

問題 No.220 世界のなんとか2
ユーザー tanukidontanukidon
提出日時 2018-03-16 00:38:22
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 147 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 11,232 KB
実行使用メモリ 202,320 KB
最終ジャッジ日時 2023-08-23 11:30:55
合計ジャッジ時間 4,693 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,048 KB
testcase_01 AC 82 ms
15,284 KB
testcase_02 AC 84 ms
15,076 KB
testcase_03 AC 90 ms
16,132 KB
testcase_04 AC 175 ms
27,688 KB
testcase_05 TLE -
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
a =[*1..10**n]
b = []
a.each{|i|b << i if i % 3 == 0}
a.map(&:to_s).each {|i| b << i if i.include?("3")}
puts b.map(&:to_i).uniq.size
0