結果
| 問題 | No.1737 One to N |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-07-05 06:50:22 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 2,000 ms |
| コード長 | 107 bytes |
| 記録 | |
| コンパイル時間 | 267 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 30,336 KB |
| 最終ジャッジ日時 | 2026-04-02 13:17:04 |
| 合計ジャッジ時間 | 4,646 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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