0分,求调
查看原帖
0分,求调
1460567
CelestialWanderer楼主2025/8/31 00:22
#include<bits/stdc++.h>
using namespace std;
int main(){
    int n,js;
    cin>>n>>js;
    for(int i=2;i<=30000;i++){
        for(int j=2;j*j<=i;j++){
            if(i%j==0){
                js++;//计数器+1
            }
            if(js==n){
             cout<<js;
                break;
            }
        }
    }
    return 0;
}
2025/8/31 00:22
加载中...