Go: package main

import (
        "fmt"
)

func main() {
        var n int
        for {
                _, err := fmt.Scanf("%d", &n)
                if err != nil {
                        break
                }
                area := 0
                for i := n; i < 600; i += n {
                        area += i*i * n
                }
                fmt.Printf("%d\n", area)
        }
}

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

using namespace std;

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

C++: #include<iostream>
#include<iomanip>
#include<string>
#include<algorithm>
#include<functional>
#include<vector>
#include<math.h>
#define C(_Str) cout << _Str << endl

using namespace std;

typedef long long int lli;

int main()
{
	int Num;
	while (cin >> Num) {
		int S = 0;
		for (int i = 0; i < 600; i += Num) S += i*i*Num;
		C(S);
	}
	return 0;
}

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

int f(int x)
{
    return x * x;
}
int main()
{
    while(true){
        int d;
        std::cin >> d;
        if(std::cin.eof()) break;
        
        int s = 0;
        for(int x = d; x < 600; x += d){
            s += d * f(x);
        }
        std::cout << s;
    }
    return 0;
}

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

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

int area(int d) {
    int upper = 600/d; //x軸の上限
    int s = 0;  // 面積初期化

    // 計算
    for (int i = 0; i < upper; i++) {
        s += f((600-d) - i * d) * d;
    }
    return s;
}

int main(void){
    int d;
    while(scanf("%d", &d) != EOF) {
       printf("%d\n", area(d));
    }
    return 0;
}

C++: 
#include <iostream>

using namespace std;

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

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

int main()
{

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

C++: #include<bits/stdc++.h>
using namespace std;
int main(void){
	int n;
	int sum;
	int i;
	cin>>n;
	sum=0;
	for(i=n;i<=600;i+=n){
		sum+=n*pow((i-n),2);
	}
	cout<<sum<<endl;
	return 0;
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
using namespace std;

#define FOR(i,s,e) for (int i = int(s); i != int(e); i++)
#define REP(i,e) for (int i = 0; i != int(e); i++)
#define FORIT(i, A) for (auto i : A)
#define ISEQ(c) (c).begin(), (c).end()
#define PRINT(x) cout << (x) << endl
#define SZ(x) ((int)(x).size())

int main(int argc, char const *argv[])
{
	int d;
	while(scanf("%d", &d) != EOF)
	{
		int sum = 0;
		for (int id = d; id < 600; id += d)
		{
			sum += id * id * d;
		}
		printf("%d\n", sum);
	}
	return 0;
}

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

int main()
{
	int N;
	while (cin >> N) {
		cin >> N;
		N = N*N*N / 3;
		cout << N;
	}
	return 0;
}

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

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

C++: #include<iostream>

using namespace std;

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

	return 0;
}

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

C++: #include <cstdio>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <vector>
#include <map>
#include <utility>
#include <complex>
#include <stack>

using namespace std;

typedef complex<double> P;

int main(){
	int x;
	while(cin>>x){
		int ans = 0;
		for (int i = 0; i < 600; i += x)
		{
			ans += i * i * x;
		}

		cout << ans << endl;
	}

	return 0;
}

C++: 
#include <stdio.h>
#include <math.h>

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

int main(void) {

        int n;
        int a,b,x,dx,sum;

        scanf("%d\n",x);
        a=0;
        b=600;
        sum=0;

        while(x<b){x+=dx;
		sum+=f(x)*x;
        }

        printf("%d\n",sum);

        return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int main(void){
    int d,sum;
    sum = 0;
    while (cin >> d) {
        for (int i=1;i<=((600-d)/d);i++) {
            sum = sum + (i*d*i*d*d);
        }
        cout << sum << endl;
        sum = 0;
    }
}

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

C++: #include <iostream>

using namespace std;

int main() {
  int d; 

  while (cin >> d) {
    int s = 0;
    for (int x_i = 0; x_i <= 600-d; x_i += d)
      s += x_i*x_i*d;

    cout << s << endl;
  }

  return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstring>
#include <algorithm>
#include <limits.h>
#include <cmath>
#include <time.h>
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define SQR(X) ((X)*(X))


int test = 0;
/* ここからが本編 */
int f(int x) {
  return x*x;
}
int main(void)
{
  int i,j,k,l;
  int d;


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

C++: while True:
    total = 0
    try:
        num = int(input())
        for i in range(num, 600, num):
            total += i*i * num
        print(total)
    except:
        break

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

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

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