結果
| 問題 | No.294 SuperFizzBuzz |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-10-23 23:09:07 |
| 言語 | Ruby (4.0.2) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 21,120 KB |
| 最終ジャッジ日時 | 2026-04-03 14:11:53 |
| 合計ジャッジ時間 | 6,899 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 TLE * 1 -- * 1 |
| other | -- * 12 |
コンパイルメッセージ
Main.rb:3: warning: possibly useless use of a literal in void context Main.rb:4: warning: assigned but unused variable - fizbuz Syntax OK
ソースコード
N = gets.chomp.to_i
10000000
fizbuz = []
count = 0
for i in 1..10 ** 100
if (i % 5 == 0 and i % 3 == 0 and /^[35]*$/ =~ i.to_s)
count += 1
if count == N
puts i
break
end
end
end