結果
問題 | No.537 ユーザーID |
ユーザー |
|
提出日時 | 2017-07-11 15:56:07 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 264 ms / 2,000 ms |
コード長 | 168 bytes |
コンパイル時間 | 181 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-10-07 15:01:18 |
合計ジャッジ時間 | 6,579 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
コンパイルメッセージ
Main.rb:3: warning: assigned but unused variable - xNumber Syntax OK
ソースコード
n = gets.chomp.to_ia = []xNumber = 01.upto(Math.sqrt(n)) do |i|if n % i == 0a << i.to_s + (n/i).to_sa << (n/i).to_s + i.to_sendendp a.uniq.count