| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 33325 | hi_hi | 【J】T2小清新判断题 | C++ | Time Limit Exceeded | 66 | 1000 MS | 248 KB | 655 | 2024-10-07 14:35:09 |
#include<bits/stdc++.h> using namespace std; long long n,t; inline long long ck(long long x){ for(int i=2;i*i<=x;i++){ if(x%i==0)return 0; } return 1; } inline long long check(long long x){ long long sum=x,ji=0; for(long long i=2;i<=sum;i++){ if(sum%i!=0)continue; if(sum%i==0){ while(sum%i==0)sum/=i; ji++; } if(ji>=2)return 1; } return 0; } int main(){ scanf("%lld",&n); while(n--){ scanf("%lld",&t); if(check(t)){ printf("Yes\n"); } else printf("No\n"); } return 0; }