結果
| 問題 | No.316 もっと刺激的なFizzBuzzをください |
| コンテスト | |
| ユーザー |
tanukidon
|
| 提出日時 | 2018-03-24 22:41:39 |
| 言語 | Ruby (4.0.2) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 158 bytes |
| 記録 | |
| コンパイル時間 | 285 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 30,920 KB |
| 最終ジャッジ日時 | 2026-03-11 08:01:47 |
| 合計ジャッジ時間 | 48,867 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 TLE * 1 |
| other | AC * 1 WA * 12 TLE * 20 |
コンパイルメッセージ
Main.rb:7: warning: possibly useless use of == in void context Main.rb:9: warning: possibly useless use of == in void context Syntax OK
ソースコード
n = gets.to_i a = gets.chomp.split.map(&:to_i) c = 0 n.times do |i| if (i+1) % a[0] == 0 c += 1 (i+1) % a[1] == 0 c += 1 (i+1) % a[2] == 0 c += 1 end end p c
tanukidon