Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	n, err := strconv.Atoi(nextString())
	return n, err
}

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

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		d, err := nextInt()
		if err != nil {
			break
		}

		area := 0
		for i := 0; i < 600/d; i++ {
			x := i * d
			area += f(x) * d
		}
		fmt.Println(area)
	}
}

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

C++: #include <cstdio>
#include <cmath>
#include <algorithm>
using namespace std;
int main()
{
    int d, s;
    while(scanf("%d", &d) != EOF) {
        s = 0;
        for (int i = d; i <= 600; i+=d) s+= d * pow((i-d), 2);
        printf("%d\n", s);
    }
    return 0;
}

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

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

C++: #include <stdio.h>

int main( void ){
    int input[ 10000 ];

    int cnt = 0;
    while( scanf( "%d",&input[cnt] ) != EOF ){ cnt++; }
    for( int c = 0;c < cnt;c++ ){
        int res = 0;
        for( int i = 0;i < 599;i++ ){
            res += input[c]*( 1+i ) * input[c];
        }
        printf( "%d\n",res );
    }
    return 0;
}

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

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

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


int main(){
	for (int i = 0; i < 51; i++){
	int a;
	cin >> a;
	int b = 600 / a;
	cout << a*a*a*(b-1)*b*(2*b-1)/6<<endl;
	}

	return 0;
}

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

int main()
{
    int d, sum = 0;

    while( cin >> d )
    {
        int x = d;
        while( x <= 600 )
        {
            int y = ( x - d ) * ( x - d );      //面積の縦の値(y)は、最初のxの値で計算。dが20-0=20なら、0*20から計算を始める。
            sum += d * y;
            x += d;
        }
        cout << sum << endl;
        sum = 0;
    }
    return 0;
}

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

int main(){
  int d;
  while(cin >> d){
    int ans = 0;
    int cou=1;
    while(d*cou <= 600-d){
      ans += (d*cou)*(d*cou)*d;
      cou++;
    }
    cout << ans << endl;
  }
}

C++: #inlcude <iostream>

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

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

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

C++: #include <cstdio>

using namespace std;

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