| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 538550 | rin_tohsaka | Toys (CEOI18_toy) | C++14 | 5058 ms | 600 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
set<int> ans;
void call(int f, int curr){
//cout << "Called " << f << " " << curr << "\n";
if(f==1){
ans.insert(curr);
return;
}
for (int i = 2; i<=f; i++){
if(f%i==0){
call(f/i,curr+i-1);
}
}
}
int main(){
int n;cin>>n;
call(n,0);
cout << ans.size();
auto it = ans.begin();
cout << "\n";
while(it!=ans.end()){
cout<<*it << " ";
it++;
}
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
