eolymp
bolt
Try our new interface for solving problems
Problems

The number of even divisors

published at 4/14/24, 12:41:05 pm

include<bits/stdc++.h>

using namespace std; int main(){ long long r=0,i,n; cin>>n; for(i=1; i<=n; i++){ if(n%i==0 and i%2==0) r++; } cout<<r; }