10pts AC#1 其它全TLE 玄关
查看原帖
10pts AC#1 其它全TLE 玄关
1360175
litianyuan000楼主2024/12/13 21:08

求调qwq

#include<bits/stdc++.h>
using namespace std;
int main(){
    long long n,s=0,cnt=0;
    cin>>n;
    for(long long i=1;i<=n;i++){
        for(int j=1;j<=i;j++){
            if(i%j==0){
                s++;
            }
        }
       if(s>2){
            cout<<i;
            s=0;
        }else{
            s=0;
        }
    }
    return 0;
}
2024/12/13 21:08
加载中...