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 f(int x){
	return (x*x);
}

int main(){
	int d,s;

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

C++: #include<iostream>

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

C++: #include <iostream>
#include <vector>

template <typename Func, typename Num>
Num integral(Func f, Num begin, Num end, Num d) {
	Num ret = 0;
	for (Num n = begin; n < end; n += d) {
		ret += f(n) * d;
	}
	return ret;
}

int main() {
	int n;
	std::vector<int> ans;
	
	while (std::cin >> n) {
		const int a = integral([](int x){return x*x;}, 0, 600, n);
		ans.push_back(a);
	}
	
	for (auto a : ans) {
		std::cout << a << std::endl;
	}
}

C++: $<.map{|i|a=b=i.to_i;c=0;(600/a-1).times{c+=b*b*a;b+=a};p c}

C++: #include<iostream>

using namespace std;

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

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

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

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

C++: /*
y = x*xの0 <= x <= 600の積分
ただし横幅dが600の約数の長方形の和で考えるため、精度は低い
*/

#include <iostream>
using namespace std;

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

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

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

C++: #include <iostream>

using namespace std;

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

    while(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>
#include <cstdio>
using namespace std;

int main(int argc, const char * argv[])
{
    int d;
    while (cin >> d) {
        int area = 0;
        int cnt = 0;
        for (int i = 1; i < (600/d); i++) {
            area += d* (d*i) * (d*i);
            cnt++;
        }
        cout << cnt << endl;
        cout << area << endl;
    }
    
    return 0;
}

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

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

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

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

C++: <?php  
$r = trim(fgets(STDIN));  
$sum = 0;
for($i = 0; $i < 600; $i+=$r){
	$sum+=($i*$i)*$r;
}
echo $sum;
?>

C++: #include<cstdio>
#include<algorithm>
#include<vector>
#include<string>
#include<iostream>
#include<queue>
#include<map>
#include<set>
#include<complex>
#include<stack>

using namespace std;

#define reps(i,f,n) for(int i=f;i<int(n);i++)
#define rep(i,n) reps(i,0,n)


int main(){
	
	int in;
	while(scanf("%d",&in)!=EOF){
		
		int sum = 0;
		int d = in;
		for(int i=0;i<600;i+=d){
			sum += i*i*d;
		}
		printf("%d\n",sum);
	}
}

C++: #include <cstdio>
#include <string>
#include <vector>
#include <algorithm>
#include <memory.h>
#include <cmath>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <ctime>
#include <iostream>
#include <functional>
#include <complex>
#include <iomanip>
#pragma comment(linker, "/STACK:836777216")

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<double, double> pdd;
typedef pair<pii, int> p3i;
typedef vector<int> vi;
typedef vector<pii> vii;
typedef vector<pll> vll;
typedef vector<p3i> v3i;
typedef vector<vii> vvii;
typedef vector<p3i> vp3i;
typedef long double ld;
typedef vector<ld> vld;

#define pb push_back
#define mp make_pair
#define REP(i, n) for (int (i) = 0; (i) < (n); (i)++)
#define REPD(i, n) for (int (i) = (n) - 1; (i) >= 0; (i)--)
#define FOR(i, a, b) for (int (i) = (a); (i) < (b); (i)++)
#define FORD(i,a, b) for (int (i) = (a); (i) >= (b); (i)--)
#define sz(v) (int)(v).size()
#define all(v) (v).begin(), (v).end()
#define rv(v) reverse(all(v))
#define CL(v, val) memset((v), (val), sizeof((v)))
#define SORT(a) sort(all(a))
#define un(v) SORT(v), (v).resize(unique(all(v)) - (v).begin())
#define eps 1.0e-7
#define X first
#define Y second
#define bit(n) (1 << (n))
#define bit64(n) (ll(1) << (n))
#define sqr(n) ((n) * (n))

int main(void) {
  int d;
  while (scanf("%d", &d) == 1) {
    ll ans = 0;
    FOR(i, 1, 600 / d) {
      ans += (ll)d * sqr(i * d);
    }

    printf("%lld\n", ans);
  }
}

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

C++: #include<stdio.h>

int main()
{
	int d, i;
	while (scanf("%d", &d) != EOF)
	{
		if (d == 0)break;
		long int total = 0;
		for (i = d; i < 600; i += d)
		{
			total = total + i*i*d;
		}
		printf("%ld\n", total);
	}
	return 0;
}

C++: #include<iostream>

int main(){
  int d,n,sum;

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

C++: #include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main(){
  int y,d,d1,sum=0;
  while(cin >> d){
    sum = 0;    
    d1 = d;
    for(;d<600;d+=d1){
      y = d*d*d1;
      sum += y;
    }
    cout << sum << endl;
  }
}

C++: #include<iostream>
#include<vector>
using namespace std;
int main(){
  int d,s;
  int S = 0;
  int n = 20;
  int y,x;
  while(n > 0){
    cin >> d;
    // int y = x * d;
    for(y < 600-d;y++;){
      int x[1000]; 
      int y = x * d;
    int s = y * d;
    int n = n - 1;
    int S = S + s;
  }
    cout << S << endl;
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

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

C++: #include<iostream>
int main(){int a=0,d,i;while(std::cin>>d){for(i=a=0;i<600;i+=d){a+=i*i*d;}std::cout<<a<<"\n";}}