結果
| 問題 | No.1737 One to N |
| コンテスト | |
| ユーザー |
distortedibu
|
| 提出日時 | 2021-11-12 22:39:24 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 712µs | |
| コード長 | 306 bytes |
| 記録 | |
| コンパイル時間 | 819 ms |
| コンパイル使用メモリ | 182,860 KB |
| 実行使用メモリ | 9,868 KB |
| 最終ジャッジ日時 | 2026-09-30 00:36:57 |
| 合計ジャッジ時間 | 2,544 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int N = 0;
cin >> N;
int X =1;
int ans = 0;
int K =0;
int i = 2;
while (i <= N && N != 1){
if (N % i == 0){
N = N / i;
ans = ans + i;
}
else{
i++;
}
}
cout << ans;
}
distortedibu