結果
問題 |
No.316 もっと刺激的なFizzBuzzをください
|
ユーザー |
![]() |
提出日時 | 2018-03-24 22:41:39 |
言語 | Ruby (3.4.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 158 bytes |
コンパイル時間 | 324 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 22,656 KB |
最終ジャッジ日時 | 2024-06-25 03:18:01 |
合計ジャッジ時間 | 4,538 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 4 |
other | TLE * 1 -- * 32 |
コンパイルメッセージ
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