Go: package main

import "fmt"

func main() {
	var d int
	for {
		fmt.Scan(&d)
		sum := 0
		for i := 0; i < 600/d; i++ {
			sum += d*d*i*d*i
		}
		fmt.Println(sum)
	}
}

C++: #include<iostream>
using namespace std;

int main() {
	int d;
	while (cin >> d) {
		long long S = 0;

		for (int i = d; i <= 600 - d; i += d) {
			S += d * i * i;
		}
		cout << S << endl;
	}
}

C++: #include<iostream>
#include<cstdio>
#define N 600
double f(double x){
    return x*x;
}


int main(void){
    int d,i;
    double sum;    
    while(scanf("%d",d)){
        sum=0;
        for(int i=d;i<N;i+=d){
            sum+=f(i);
        }
        std::cout<<sum<<std::endl;
    }
    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;

int main() {
	int d;
	while(cin >> d){
		int s = 0;
		for(int i = 1; i < 600 / d; ++i){
			s += pow(d * i, 2) * d;
		}
		cout << s << endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;

int main() {
	int n;
	while(cin>>n)
	{
		int ans=0;
		for(int i=0;i<600;i+=n)
		{
			ans+=i*i*n;
		}
		cout<<ans<<endl;
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
  int d;
  int s;
  while(cin >> d){
    s = 0;
    for(int i = 1;d*i < 600;i++){
      s += d*d*d*i*i;
    }
    cout << s << endl;
  }
}

C++: #include <iostream>

long f(long x)
{
	return x * x;
}

long integral(long x_begin, long x_end, long delta)
{
	long result = 0;
	for (long x = x_begin; x < x_end; x += delta) {
		result += f(x) * delta;
	}
	return result;
}

int main()
{
	int input;
	while (std::cin >> input) {
		std::cout << integral(0, 600, input) << std::endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
double f(int x);

int main(){
  int n;
  int sum;
  while(cin >> n){
    sum = 0;
    for (int i=0; i<600/n; i++){
      sum += f(i*n)*n;
    }
    cout << sum <<endl;
  } 
}

double f(int x){
  return x*x;
}

C++: #include <iostream>
 
using namespace std;
int main(void){
        int d;
        while(!cin.eof()){
                cin >>d;
                int total=0;
                for(int i=d; i<600; i+=d)
                        total+=d*i*i;
                cout << total << endl;
        }
        return 0;
}

C++:  #include<iostream>
 #include<stdio.h>
 #include<string>
 #include<math.h>
 #include<iomanip>
 #include<algorithm>
 #include<string.h>
 #include<cctype>
 #include<map>
 #include<set>
 #include<vector>
 #include<sstream>
 #include<stack>
 
 using namespace std;
 
 int main()
 {
   int d;
   while(cin>>d)
   {
     int s=0;
     int yield=600/d;
     for(int i=0;i<yield-1;i++) s+=(i+1)*(d)*(i+1)*(d)*d;
     cout<<s<<endl;               
   }
   //while(1);      
   return 0;    
 }

C++: #include <iostream>
#include <cstdio>
using namespace std;

int f(int x)
{
    return x*x;
}

int area(int d) {
   int x,y,sum,i;
   x=600;
   y=f(d);
   sum=0;
   i=1;
   
   while(d*i<=600-d)
   {
       sum+=y*d;
       i++;
       y=f(d*i);
   }
    return sum;
}

int main(void){
    int d;
    while(cin >> d) {
       cout << area(d) << endl;
    }
    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;

int main() {
	int d;
	while (cin >> d) {
		int64_t s = 0;
		for (int64_t i = d; i <= 600 - d; i += d) {
			s += i * i * d;
		}

		cout << s << endl;
	}
}

C++: #include <iostream>
#include <string>
using namespace std;

int main()
{
    int d;
    while(cin >> d){
        int s=0;
        for(int i=0 ; i<600 ; i+=d ){
            s+=i*i*d;
        }
    cout << d << endl;
    }
	return 0;
}

C++: #include <stdio.h>
#define NN 600
int f(int x){ return x*x; }
int main(){
	int d,h;
	double s=0;
	while(scanf("%d",&d)!=EOF){
		for(h=d;h<NN;h+=d){
			s += d*f(h);
		}
		printf("%lf\n",s);
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
 
int f(int _i)
{
    return _i*_i;
}
 
int main()
{
    int d;
    while(cin >> d){
        int S = 0;
 
        for(int i=1;i<600/d;++i){
            S += f(d*i)*d;
        }
 
        cout << S << endl;
 
    }
    return 0;
}

C++: #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<cmath>
#include<cstdio>

using namespace std ;

#define pb(n) push_back(n)
#define fi first
#define se second
#define all(r) (r).begin(),(r).end()

#define rep(i,n) for(int i = 0; i < (n);++i)
#define repc(i,a,b) for(int i = (a);i <(b);++i)
#define repa(n,array) for(auto n :(array))

typedef long long ll ;
typedef vector<int> vi ;
typedef vector<ll> vl ;

constexpr int IMAX = ((1<<30)-1)*2+1 ;
constexpr int INF = 100000000;
double EPS = 1e-10 ;

int main(){
  int num,ans;
  while(cin >> num){
    ans = 0 ;
    for(int i = 0; i < 600;i+=num){
      ans += i*i*num ;
    }
    cout << ans << endl ;
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    int d;
    int LuasPersegiPanjang = 0;
    int TinggiPersegiPanjang[600];
    int TinggiSementara;

    cin >> d;

    int BanyakPersegiPanjang = 600/d;
    TinggiSementara = d;
    for(int x = 0; x < BanyakPersegiPanjang-1; x++)
    {
        TinggiPersegiPanjang[x] = TinggiSementara*TinggiSementara;
        TinggiSementara = TinggiSementara + d;

        LuasPersegiPanjang = LuasPersegiPanjang + (TinggiPersegiPanjang[x] * d);
    }

    cout << LuasPersegiPanjang;


}

C++: #include <iostream>
#define f(a) ((a)*(a))

using namespace std;
int main(){
    int d;
    long long int sum;
    while(cin >> d){
        sum=0;
        for(int i=1;i*d<600;i++){
            sum+=f(i*d)*d;
        }
    cout << sum << endl;
    }
    return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;

typedef long long ll;

int main(void)
{
    long long int a , b , c , counter;

    while(cin >> a){

        b=600;
        c=0;

        while(true){

            b-=a;

            if(b==0)break;

            c+= b*b;

            //b-=a;
        }

        cout << c*a << endl;
    }

    return 0;
}

C++: #include <iostream>
using namespace std;

int main(){
	int d;
	int n;
	while(cin >> d){
		int s = 0;
		n = 600 / d;
		for(int i = 0; i < n; i++){
			s += (i * d) * (i * d) * d;
		}
		cout << s << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;

int main()
{
    int d,s;
    while(cin >> d){
        s=0;
        for(int i=0 ; i<600 ; i+=d){
            s+=i*i*d;
        }
        cout << s << endl;
    }
	return 0;
}

C++: #include<iostream>

using namespace std;
int solve(int d){
	int ret=0;
	for(int i=d;i<=600-d;i+=d)
		ret+=i*i*d;
	return ret;
}

int main(){
	int d;
	while(cin>>d){
		cout<<solve(d)<<endl;
	}
}

C++: #include <iostream>
 
inline int get_function(const u_int x)
{
    return x * x;
}
 
int get_integral(const u_int x, const u_int d)
{
    u_int ans = 0, num_of_iter = x / d;
    for(u_int i = 1; i < num_of_iter; ++i)
        ans += d * get_function(d * i);
    return ans;
}
 
int main()
{
    const u_int x = 600;
    u_int d;
    while(std::cin >> d)
        std::cout << get_integral(x, d) << std::endl;
     
    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using lint = long long int;
using ulint = unsigned long long int;
template<class T = int> using V = vector<T>;
template<class T = int> using VV = V< V<T> >;
template<class T, class U> void assign(V<T>& v, int n, const U& a) { v.assign(n, a); }
template<class T, class... Args> void assign(V<T>& v, int n, const Args&... args) { v.resize(n); for (auto&& e : v) assign(e, args...); }


int main() {
  cin.tie(nullptr); ios_base::sync_with_stdio(false);
  string s;
  while (getline(cin, s)) {
    int d = stoi(s);
    lint res = 0;
    for (int i = 0; i < 600; i += d) {
      res += i * i * d;
    }
    cout << res << '\n';
  }
}

C++: #include<iostream>

int main(){
  int d,S;
  std::cin >> d;
  for(int i = 1; i < 600/d; ++i){
    S += (i*d) * (i*d) * d;
  }
  std::cout << S << std::endl;
  return 0;
}