比赛 NOIP2023模拟赛5 评测结果 RRRRRRRRRRRRRRRRRRRRRR
题目名称 Number With The Given Amount Of Divisors 最终得分 0
用户昵称 小金 运行时间 0.232 s
代码语言 C++ 内存使用 6.38 MiB
提交时间 2023-11-17 12:40:22
显示代码纯文本
#include<bits/stdc++.h>
using namespace std;
map<long long,int> b;
int n;
void p()
{
	for(int i=1;i<=10000;i++)
	{
		for(int j=1;j*i<=10000;j++)
		{
			b[i*j]++;
		}
	}
}
int main()
{
	freopen("CF27E.in","r",stdin);
    freopen("CF27E2.out","w",stdout);
	cin>>n;
	p();
	for(int i=1;i<=10000;i++)
	{
		if(b[i]==n)
		{
			cout<<i;
			return 0;
		}
	}
}