提交时间:2021-05-27 21:52:21

运行 ID: 20014

#include<bits/stdc++.h> using namespace std; int sum=0; long long a,n,k,kk; int main(){ cin>>n; n=n*2;k=2; while(k*k<n){ if (n%k==0) if((n/k-k+1)%2==0)sum++; k++; } cout<<sum; return 0; }