結果
問題 |
No.736 約比
|
ユーザー |
|
提出日時 | 2019-11-05 10:18:08 |
言語 | Ruby (3.4.1) |
結果 |
MLE
|
実行時間 | - |
コード長 | 310 bytes |
コンパイル時間 | 59 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 528,512 KB |
最終ジャッジ日時 | 2024-09-14 23:59:38 |
合計ジャッジ時間 | 4,657 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 MLE * 1 -- * 59 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n = gets.chomp.to_i a_s = gets.chomp.split.map &:to_i a_min = a_s.min (2...a_min).to_a.reverse.each {|i| # puts "i: #{i}" is_div = true a_s.each {|a| if a % i != 0 is_div = false end } if is_div a_s = a_s.map{|a| a /= i } end } puts a_s.join(':')