Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
33480 TianXiezuo 【J】T2小清新判断题 C++ 通过 100 83 MS 256 KB 366 2024-10-09 18:10:21

Tests(3/3):


#include<bits/stdc++.h> using namespace std; typedef long long ll; int main(){ ll n; cin>>n; while(n--){ ll x,ans=0; cin>>x; for(ll i=2;i*i<=x;i++){ if(x%i==0){ ans++; while(x%i==0){ x/=i; } } } if(x>1){ ans++; } if(ans>=2){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } } return 0; }


测评信息: