結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-09-08 15:03:57 |
| 言語 | Crystal (1.14.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 241 bytes |
| コンパイル時間 | 13,975 ms |
| コンパイル使用メモリ | 306,396 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-09-08 15:04:12 |
| 合計ジャッジ時間 | 14,941 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
def contains_three(n : Int32) : Bool
num = n
while num > 0
return true if num % 10 == 3
num //= 10
end
false
end
a, b = read_line.split.map(&.to_i)
(a..b).each do |i|
if i % 3 == 0 || contains_three(i)
puts i
end
end
vjudge1