結果

問題 No.220 世界のなんとか2
ユーザー tanukidontanukidon
提出日時 2018-03-16 00:46:33
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 99 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 11,424 KB
実行使用メモリ 176,004 KB
最終ジャッジ日時 2023-08-23 11:31:33
合計ジャッジ時間 3,548 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
19,440 KB
testcase_01 AC 81 ms
15,048 KB
testcase_02 AC 85 ms
15,116 KB
testcase_03 AC 83 ms
15,648 KB
testcase_04 AC 115 ms
16,768 KB
testcase_05 AC 452 ms
30,744 KB
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 ||i.to_s.include?("3")}
p b.size
0