Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func main() {
	for sc.Scan() {
		d, _ := strconv.Atoi(sc.Text())
		var area int
		for i := 1; i*d < 600; i++ {
			area += d * (d * i) * (d * i)
		}
		fmt.Println(area)
	}
}

C++: #include <stdio.h>

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

int main(){
  int n;
  while(scanf("%d", &n)!=EOF){
    long long int v=0;
    for(int i=1;i<600/n;i++){
      v += f(n*i)*n;
    }
    printf("%lld\n", v);
  }
}

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

C++: #include <iostream>

using namespace std;

int main()
{
    int d;
    while(cin>>d){
        int i = 2;
        int x = d;
        long sum = 0;
        while(600-x>0){
            sum += x*x*d;
            x = d * i;
            i++;
        }
        cout<<sum<<endl;
        sum = 0;
    }

    return 0;
}

C++: #include <iostream>

using namespace std;

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

int main()
{
    int d;
    
    while (cin>>d)
    {
        int ans = 0;
        
        for (int i = 1; d * i < 600; i++)
        {
            ans += f(d * i) * d; // equation is informed from question
        }
        
        cout<<ans<<endl;
    }
    
    return 0;
}

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

C++: #include<stdio.h>
int main()
{
int d;
int sum=0;
while(scanf("%d",&d)!=0){
sum=0;
for(int i=d;i<=600-d;i+=d){
sum+=i*i*d;
}
printf("%d",&sum)}
return 0;
}

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

int main()
{
        int div;
        ll sum;

        while(cin >> div){
                sum = 0;
                for(int i = div;i<=600-div;i+=div){
                        sum += i*i*div;
                }

                cout << sum << endl;
        }

        return 0;
}

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

int main(){
int d;
while(cin >> d){
int s;
s=600/d;
int a;
a=0;
int b;
b=0;
while(a<s){
b=b+d*d*a*a;
a=a+1;}
cout << a*d <<endl;}

}

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

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

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

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

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

C++: #include<stdio.h>
int main(){
	int n;
	while(~scanf("%d",&n)){
		int sum=0;
		for(int i=n;i<600;i+=n)sum+=n*i*i;
		printf("%d\n",sum);}
	return 0;}

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

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

int main() {
	int d, ans;
	while (1 == scanf("%d", &d)) {
		ans = 0;
		for (int i = 0; i * d < 600; ++i) {
			ans += d * f(i * d);
		}
		printf("%d\n", ans);
	}
	return 0;
}

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

int main()
{
	int d;

	while(std::cin >> d)
	{
		int s = 0;

		for(int i=0;i<(600/d);++i)
		{
			s+=(i*d)*(i*d)*d;
		}

		std::cout << s << '\n';
	}
}

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

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

C++: #include <stdio.h>

long f(int x);

int main(void){
    int d;
    long s;
	
    while (scanf("%d", &d)){
        s=0;
        for (int i=0; i<600/d; i++){
            s += d*f(i*d);
        }
	    printf("%ld\n", s);
    }
    return 0;
}

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

C++: #include <bits/stdc++.h>
#define rep(i,a,n) for(int i=a;i<n;i++)
#define repr(i,a,n) for(int i=a;i>=n;i--)
#define INF 999999999
#define INF_M 2147483647
#define pb(a) push_back(a)

using namespace std;
typedef pair<int, int> pii;
typedef long long int ll;
typedef vector<pii> VP;

int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};

int main() {
    int n;
    while(cin >> n) {
    	ll ret = 0;
    	int m = 600 / n;
    	rep(i,0,m) {
    		ret += n * (i * i * n * n);
    	}
    	cout << ret << endl;
    }
    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){
    // Your code here!
    int d;

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

C++: #include <iostream>
#include <vector>
#include <set>
#include <algorithm>
#include <string>
#include <sstream>
#include <iomanip>
 
#define INPUT_FROM_FILE (0)
#if INPUT_FROM_FILE
#include <fstream>
#endif

int f(long n){
	return n * n;
}

int main(int argc, char **argv){
	std::string buf;
	long d = 0;
	long max = 0;
	long s = 0;

#if INPUT_FROM_FILE
	std::ifstream ifs("test.txt");
#endif

#if INPUT_FROM_FILE
	while(std::getline(ifs, buf)){
#else
	while(std::getline(std::cin, buf)){
#endif
		d = std::stoi(buf);
		max = 600 - d;

		s = 0;
		for(int i = d; i <= max; i += d){
			s += d * f(i);
		}
		std::cout << s << std::endl;
	}
	return 0;
}

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

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

int area(int d) {



 }
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,a,b,s,sum;
    while(cin>>d){
        sum=0;
        a=600/d;
        for(int i=0;i<a;i++){
            b=d*d*i*i;
            s=b*d;
            sum+=s;
        }
        cout << sum << endl;
    }
    return 0;
}

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

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

C++: 00:00 sec    3148 KB     264 bytes    
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <math.h>

using namespace std;

int main(){

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

    return 0;
}

C++: #include <stdio.h>
int main(void)
{
	int d,count,sum;
	while(~scanf("%d",&d))
	{
		for(count=0,sum=0;count<600;count+=d)
		{
			sum+=count*count*d;
		}
		printf("%d\n",sum);
	}
}

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 << area << endl;
    }
    
    return 0;
}

C++: #include <sstream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <iostream>
#include <utility>
#include <set>
#include <cctype>
#include <queue>
#include <stack>
#include <cstdio>
#include <cstdlib>
#include <cmath>
using namespace std;

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

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