結果
| 問題 | No.1737 One to N |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-07-05 06:50:22 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 59 ms / 2,000 ms |
| + 793µs | |
| コード長 | 107 bytes |
| 記録 | |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 15,104 KB |
| 最終ジャッジ日時 | 2026-08-17 20:20:48 |
| 合計ジャッジ時間 | 5,367 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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