結果
| 問題 |
No.300 平方数
|
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2016-09-17 11:26:25 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 157 bytes |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-11-17 08:13:19 |
| 合計ジャッジ時間 | 6,185 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 43 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.to_i.prime_division
ans = n.map { |x| x[0]*(x[1]%2) }.select {|x| x > 0 }.inject { |a,x| a*x }
if ans == nil then
puts "1"
else
puts ans
end
💕💖💞