| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 20014 | 桑迪 | 堆木头 | C++ | Accepted | 100 | 1330 MS | 248 KB | 214 | 2021-05-27 21:52:21 |
#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; }