結果
| 問題 |
No.1737 One to N
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-07-05 06:50:22 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 105 ms / 2,000 ms |
| コード長 | 107 bytes |
| コンパイル時間 | 411 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,544 KB |
| 最終ジャッジ日時 | 2024-07-19 01:15:50 |
| 合計ジャッジ時間 | 5,746 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
コンパイルメッセージ
Syntax OK
ソースコード
require 'prime'
n=gets.to_i
if n==1 then
puts 0
else
puts n.prime_division.map{|e|
e[0]*e[1]
}.sum
end
horiesiniti