結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2023-03-31 18:23:23 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 88 ms / 5,000 ms |
コード長 | 134 bytes |
コンパイル時間 | 75 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-09-22 21:51:57 |
合計ジャッジ時間 | 2,481 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
コンパイルメッセージ
Main.rb:6: warning: `%' after local variable or literal is interpreted as binary operator Main.rb:6: warning: even though it seems like string literal Syntax OK
ソースコード
input = gets.chomp a, b = input.split.map{|n| n.to_i } a.upto(b) do |n| if n %3 == 0 || n.to_s.include?("3") puts n end end