1 solutions

  • 1
    @ 2025-10-7 9:34:50
    #include <bits/stdc++.h>
    using namespace std;
    int n,q;
    int main(){
    	scanf("%d",&q);
    	while(q--){
    		scanf("%d",&n);
    		while(!(n%2))n/=2;
    		while(!(n%5))n/=5;
    		if(n == 1)printf("NO\n");
    		else printf("YES\n");
    	}
    	return 0;
    }
    

    Information

    ID
    840
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    10
    Tags
    (None)
    # Submissions
    10
    Accepted
    3
    Uploaded By