結果

問題 No.207 世界のなんとか
ユーザー Henriettafn
提出日時 2017-08-16 11:36:26
言語 Ruby
(3.4.1)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 102 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-10-13 12:50:50
合計ジャッジ時間 2,541 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: warning: `%' after local variable or literal is interpreted as binary operator
Main.rb:3: warning: even though it seems like string literal
Syntax OK

ソースコード

diff #

a,b = gets.split.map(&:to_i)
for i in a..b
  if i %3 == 0 || i.to_s.include?("3")
    puts i
  end
end
0