Time limit:
3000 MS space limitations: 65536 KB specific restrictions
1 #include<bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 register long long int n,i,j,num,ans=0; 6 cin>>n; 7 for(i=1;i<=n;i++){ 8 cin>>num; 9 for(j=1;j<=num;j++){ 10 if(num%j==0){ 11 ans+=j; 12 } 13 } 14 cout << age << endl; 15 years = 0 ; 16 } 17 }