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;
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;
}

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

using namespace std;

int main(int argc, char const* argv[])
{
	long long sum[5001];
	int n;

	while( cin >> n && n != 0 ){
		int input;
		for( int i = 0;i < 5001;i++ ) sum[i] = 0;
		cin >> input;
		sum[1] = input;
		for( int i = 2;i <= n;i++ ){
			cin >> input;
			sum[i] = input + sum[i - 1];
		}

		long long answer = -10000000;

		for( int i = 1;i <= n;i++ ){
			for( int j = 0;j < i;j++ ){
				answer = max( answer, sum[i] - sum[j] );
			}
		}

		cout << answer << endl;
	}

			

	return 0;
}

C++: #include "bits/stdc++.h"
using namespace std;
int main() {
	cin.tie(0); ios::sync_with_stdio(false);
	int d;
	while (cin >> d) {
		int area = 0;
		for (int x = d; x <= 600 - d;x += d) {
			area += x*x*d;
		}
		cout << area << endl;
	}
}

C++: #include <iostream>

using namespace std;

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

int main()
{
        int d;

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

        return 0;
}

C++: #include <stdio.h>

int main(void) {
  
  int d,count,s;

  while(scanf("%d",&d)!=EOF) {

    count=0;
    s=0;

    for(;count<600;count=count+d) {
      s+=count*count*d;
    }

    printf("%d\n",s);
  }

  return 0;

}

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

int main(){
	int d;

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

	return 0;
}