結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
yuruhuwaRuby
|
| 提出日時 | 2016-05-25 21:54:22 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 91 ms / 5,000 ms |
| コード長 | 224 bytes |
| コンパイル時間 | 48 ms |
| コンパイル使用メモリ | 7,680 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-10-09 10:56:19 |
| 合計ジャッジ時間 | 2,446 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
コンパイルメッセージ
Syntax OK
ソースコード
a,b = gets.split.map(&:to_i)
(a..b).each do |i|
str = i.to_s
if str.length > 1
split = str.split("")
if i % 3 == 0 || split.index("3")
puts i
end
else
if i % 3 == 0
puts i
end
end
end
yuruhuwaRuby