結果
| 問題 | No.294 SuperFizzBuzz |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-10-23 23:09:07 |
| 言語 | Ruby (4.0.6 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 116 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,592 KB |
| 最終ジャッジ日時 | 2026-08-24 01:02:27 |
| 合計ジャッジ時間 | 7,322 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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