Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
33341 | hi_hi | 【J】T2小清新判断题 | C++ | 运行超时 | 66 | 1000 MS | 252 KB | 554 | 2024-10-07 17:17:43 |
#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 1; } return 0; } inline long long check(long long x){ long long ji=0; for(int i=2;i<=x;i++){ if(x%i==0){ ji++; while(x%i==0)x/=i; } if(ji>=2)return 1; } return 0; } int main(){ scanf("%lld",&n); while(n--){ scanf("%lld",&t); if(ck(t)==0 || check(t)==0){ printf("No\n"); } else printf("Yes\n"); } return 0; }