結果
| 問題 |
No.294 SuperFizzBuzz
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-10-23 23:09:07 |
| 言語 | Ruby (3.4.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 208 bytes |
| コンパイル時間 | 449 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 19,484 KB |
| 最終ジャッジ日時 | 2024-07-23 11:44:50 |
| 合計ジャッジ時間 | 6,943 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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