Submission #746492

# Submission time Handle Problem Language Result Execution time Memory
746492 2023-05-22T14:18:35 Z vjudge1 Toys (CEOI18_toy) C++17
0 / 100
1 ms 212 KB
#include<bits/stdc++.h>
using namespace std;

int main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	int n;
	cin>>n;
	vector<set<int>>st(n+1);
	vector<vector<int>>allv(n+1);
	for(int i=2;i<=n;i++){
		for(int j=i;j<=n;j+=i){
			allv[j].push_back(i);
		}
	}
	st[1].insert(0);
	for(int i=1;i<=n;i++){
		for(auto x:allv[i]){
			for(auto y:allv[i/x]){
				st[i].insert(x-1+y);
			}
		}
	}
	cout<<st[n].size()<<'\n';
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -