結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2016-06-05 11:12:31 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 215 bytes |
| コンパイル時間 | 286 ms |
| コンパイル使用メモリ | 7,680 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-10-08 15:20:26 |
| 合計ジャッジ時間 | 2,395 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 10 |
コンパイルメッセージ
Syntax OK
ソースコード
def f(n)
n=n.to_i
if n%3 == 0
return true
end
while n>0
if n%10==3
return true
end
n/=10
end
return false
end
a,b=STDIN.gets.split(" ")
a=a.to_i
b=b.to_i-1
for i in a..b
if f(i)
puts i
end
end
horiesiniti