Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  all_outputs
Language: C/C++
Code:
#include<iostream>
using namespace std;
int main()
{
long int M;
unsigned long long int N,temp,i;
unsigned long long int sum;
int T,t,j;
std::cin>>T;
t=T;
while(t-->0)
{
std::cin>>N>>M;
sum=0;
for(j=1;j<=N;j++)
{for(i=1;i<=j;i++)
{
temp=N/i;
sum+=i*i*i*i*temp;
}
std::cout<<sum<<"\n";
}
}
return 0;
}

          
          
Comments: