Initiate Luogu

This commit is contained in:
e2hang
2025-08-13 21:38:49 +08:00
parent ab606e0cbd
commit 8bfe9f31f3
22 changed files with 735 additions and 0 deletions

36
Luogu/P1128yinshu.cpp Normal file
View File

@@ -0,0 +1,36 @@
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n;
cin>>n;
long long m=n+1;
bool flag=false;
int js=0;
while(flag==false)
{
js=0;
for(int i=1;i<=m;i++)
{
if(m%i==0){
js++;
}
}
if(js==n){
flag=true;
}
else{
m++;
}
}
cout<<m<<endl;
/*
for(int i=0;i<js;i++){
cout<<a[i]<<" ";
}
cout<<endl;
*/
return 0;
}