Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C by b20dccn037 ( 5 years ago )
#include<stdio.h>
#include<math.h>

int main(){
    int t;
    scanf("%d",&t);
    while(t--){
       int n,i=1,count=0;

       scanf("%d",&n);
    for(int i=1;i<=sqrt(n); i++){
            int l=n/i;
        if(n%i==0){
            if(i%2==0){
                count++;

            }
            if(l%2==0){
                    count++;
                }

        }
        if(l==i){
            count=count-1;
        }
    }
    if(count<0) printf("0\n");
    else printf("%d\n",count);
}
}

 

Revise this Paste

Your Name: Code Language: