結果
| 問題 |
No.1737 One to N
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-12 21:58:04 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 148 bytes |
| コンパイル時間 | 1,673 ms |
| コンパイル使用メモリ | 170,868 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-22 13:15:01 |
| 合計ジャッジ時間 | 2,651 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
import std;
void main(){
auto n=readln.chomp.to!long;
auto r=0;
for(auto d=2;d<=n;d++){
while(n%d==0){
n/=d;
r+=d;
}
}
writeln(r);
}