Problem:


  MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});

Integral

Write a program which computes the area of a shape represented by the following three lines:

$y = x^2$

$y = 0$

$x = 600$

-->

It is clear that the area is $72000000$, if you use an integral you learn in high school. On the other hand, we can obtain an approximative area of the shape by adding up areas of many rectangles in the shape as shown in the following figure:

$f(x) = x^2$

 

-->

The approximative area $s$ where the width of the rectangles is $d$ is:

area of rectangle where its width is $d$ and height is $f(d)$ $+$ 

area of rectangle where its width is $d$ and height is $f(2d)$ $+$ 

area of rectangle where its width is $d$ and height is $f(3d)$ $+$ 

...

area of rectangle where its width is $d$ and height is $f(600 - d)$  

The more we decrease $d$, the higer-precision value which is close to $72000000$ we could obtain. Your program should read the integer $d$ which is a divisor of $600$, and print the area $s$.

Input

The input consists of several datasets. Each dataset consists of an integer $d$ in a line. The number of datasets is less than or equal to 20.

Output

For each dataset, print the area $s$ in a line.

Sample Input

20
10

Output for the Sample Input

68440000
70210000



Sample input:
20
10


Sample output:
68440000
70210000

Submission status: Wrong Answer

Solution code:
import sys
X = 600
for line in sys.stdin:
    s=0
    d = int(line)
    for nowx in xrange(0,X,d):
        s += d*(nowx**2)
        print nowx
    print s

Submission status: Wrong Answer

Solution code:
def function(a):
	s=0
	d=a
	for i in range(d,600-d+1,d):
		s+=a*(d**2)
		d+=a
		#print("%10d %10d"%(d,s))
	return s


n=int(input())
print(function(n))

Submission status: Wrong Answer

Solution code:
d = int(input())
s = 0
for n in [i * d for i in range(1, 600)]:
    if n >= 600:
        break
    s += (n ** 2)

print(s * d)

Submission status: Wrong Answer

Solution code:
print('test')

Submission status: Wrong Answer

Solution code:
import sys

a = []
for line in sys.stdin:
    a.append(line)

for n in a:
    num=int(n)
    x=0
    are=0
    while x<600:
         are+=(x**2)*num
         x+=num

print are

Submission status: Wrong Answer

Solution code:
d=int(input())
sum=0
for i in range(int(600/d)):
    sum+=(((i*d)**2)*d)
print(sum)

Submission status: Wrong Answer

Solution code:
def integral(d):
    print("d=%d" % d)
    n = 600//d
    print("n=%d" % n)
    
    s = 0.0
    for i in range(n):
        s += (d*i)**2
    return(s*d)

if __name__ == '__main__':
    while True:
        try:      
            d = int(input())
            print(int(integral(d)))
        except:
            break

Submission status: Wrong Answer

Solution code:
import sys

def f(x):
    return x ** 2

def integral(d):
    s = f(d) * d
    for i in range(600 // d - 1):
        s += f(d * (i + 1)) * d
    return s

lines = sys.stdin.readlines()
for line in lines:
    print(integral(int(line)))

Submission status: Wrong Answer

Solution code:
import sys

for line in sys.stdin:
    d = int(line)
    S = 0
    for x in range(1, 600, d):
        S += (x ** 2) * d
    print(S)

Submission status: Wrong Answer

Solution code:
d = int(input())
print(sum(d * (i ** 2) for i in range(int(600/d))))

Submission status: Wrong Answer

Solution code:
d = int(input())
print(sum(d * ((i * d) ** 2) for i in range(int(600/d))))

Submission status: Wrong Answer

Solution code:
# AOJ 0014 Integral
# Python3 2018.6.10 bal4u

import sys

for d in sys.stdin:
    print(sum(x**2 for x in range(int(d), 600, int(d))))

Submission status: Wrong Answer

Solution code:
def f(x):
    return x**2
area = []
while 1:
    try:
        d0 = raw_input()
        if d0 == '':
            break
        d = int(d0)
        for i in range(d, 600, d):
            print i
            area.append(d*f(i))

        print area
        Sumpoyo = sum(area)
        print Sumpoyo
    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
def f(x):
    return x**2

while 1:
    try:
        d0 = raw_input()
        if d0 == '':
            break
        area = []
        d = int(d0)
        for i in range(d, 600, d):
            print i
            area.append(d*f(i))

        print area
        Sumpoyo = sum(area)
        print Sumpoyo
    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
def f(x):
    return x**2

while 1:
    try:
        d0 = raw_input()
        if d0 == '':
            break
        area = []
        d = int(d0)
        for i in range(d, 600, d):
            print i
            area.append(d*f(i))
        Sumpoyo = sum(area)
        print Sumpoyo
    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
while True:
    try:
        d = int(raw_input())
    except EOFError:
        break
    if d == 600:
        rects = [600*600*600]
    else:
        rects = map(lambda x:d*x*x,range(d, 600, d))
    print reduce(lambda x,y:x+y,rects)

Submission status: Wrong Answer

Solution code:
#! /usr/bin/python

def main():
	dx = int(raw_input())
	area = integral(dx)
	print(area)

def integral(dx):
	x = 0
	area = 0
	while x < 600:
		area += f(x) * dx
		x += dx

	return area;

def f(x):
	return x * x

main()

Submission status: Wrong Answer

Solution code:
d = int(raw_input())
print sum([d*x*x for x in range(d,600,d)])

Submission status: Time Limit Exceeded

Solution code:
import sys

for line in sys.stdin:
    result = 0
    d = int(line)
    x = d
    while x < 600:
        result += x**2 * d
    print result

Submission status: Accepted

Solution code:
while True:
  try:
    d = int(input())
  except EOFError:
    break
  
  sum = 0
  for i in range(600 // d):
    j = i * d
    sum += j * j * d
  print(sum)

Submission status: Accepted

Solution code:
def f(x):
  return x ** 2

while True:
  try:
    d = input()
  except:
    break;
  ans = 0
  for i in range(600 / d):
    ans += f(i * d) * d
  print ans

Submission status: Accepted

Solution code:
import sys

for d in map(int, sys.stdin):
  sum = 0
  for x in range(d, 600, d):
    sum += (x**2)*d
  print sum

Submission status: Accepted

Solution code:
while(True):
    try:
        d = input()
        step = 600 / d
        ans = 0
        for i in range(step):
            ans += d * (i * d) ** 2
        print(ans)
    except Exception:
        break

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


import sys

max_num = 600
def f(x):
  return x*x

for s in sys.stdin:
  d = int(s)
  s = 0
  for i in xrange(0,max_num,d):
    s += f(i)*d
  print s

Submission status: Accepted

Solution code:
while True:
    try:
        d=int(input())
        sum=0
        for i in range(d,600,d):
            sum+=i**2*d

        print(sum)

    except:
        break

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin:
    d = int(line)
    print(sum(i * i * d for i in range(d, 600, d)))

Submission status: Accepted

Solution code:
while True:
    try:
        sum = 0
        d = input()
        for i in range(d, 600, d):
            sum += d * i * i
        print sum
    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(input())
    except EOFError:
        break
    print(sum(x ** 2 for x in range(0, 600, d)) * d)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Copyright  : @Huki_Hara
# Created    : 2015-03-01

while True:
    try:
        d=int(input())
    except:
        break
    s=0
    for i in range(0,600-d+1,d):
        s+=d*i**2
    print(s)

Submission status: Accepted

Solution code:
import sys
for d in sys.stdin:
    d=int(d)
    n=600/d
    S=0
    for i in xrange(1,n):
        S+=(d*i)*(d*i)*d
    print S

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(raw_input())
    except EOFError:
        break
    S = 0
    for i in range(d, 600, d):
    	S += d*i*i
    print S

Submission status: Accepted

Solution code:
import sys
for l in sys.stdin:
	d=int(l)
	print sum([i*i*d**3 for i in range(1,600/d)])

Submission status: Accepted

Solution code:
import sys
for d in map(int,sys.stdin):print sum([i*i*d for i in range(d,600,d)])

Submission status: Accepted

Solution code:
def get_input():
    while True:
        try:
            yield int(raw_input())
        except EOFError:
            break

num_lis = list(get_input())

for num in num_lis:
    all_count = 600/num
    S = 0
    for i in range(all_count-1):
        count = i+1
        yoko = num
        tate = (count*num)**2
        S += (yoko*tate)
    print(S)

Submission status: Accepted

Solution code:
while 1:
    try:
        dd = raw_input()
        d = int(dd)
        i = 1
        ans = 0
        while i * d < 600:
            ans += (i * d) * (i * d) * d
            i += 1
        print ans
    except:
        break

Submission status: Accepted

Solution code:
#!/usr/bin/env python
#-*- coding:utf-8 -*-

import sys
import math

def rectArea(h, w):
    return h * w


for d in sys.stdin:
    area = 0
    d = int(d)
    for i in range(0, 600, d):
        area += rectArea(i*i, d)

    print(area)

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

def main():
    while True:
        try:
            d=int(input())
            count=d
            ans=0
            while count<600:
                ans+=(count**2)*d
                count+=d

            print(ans)
        except:
            break
            
    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
for i in sys.stdin.readlines():
  s = 0
  x = int(i)
  for j in range(x,600,x):
    s += x * (j**2)
  print(s)

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(input())
    except:
        break
    print(sum(i * i * d for i in range(d, 600, d)))

Submission status: Accepted

Solution code:

import sys
def func(x):
   fun = x*x
   return fun
def cal(d):
   s = 0
   for i in range(1,int(600/d)):
       s = s + d * func(i*d)
   return s
for line in sys.stdin.readlines():
   d = int(line)
   print(cal(d))

Submission status: Accepted

Solution code:
import sys

def f(x):
    return x*x

lines = sys.stdin.readlines()
for line in lines:
    d = int(line)
    n = 600//d
    integ = 0
    for i in range(1,n):
        integ += d*f(i*d)
    print (integ)

Submission status: Accepted

Solution code:
import sys
X = 600
for line in sys.stdin:
    s=0
    d = int(line)
    for nowx in xrange(0,X,d):
        s += d*(nowx**2)
    print s

Submission status: Accepted

Solution code:
def function(a):
	s=0
	d=a
	for i in range(d,600-d+1,d):
		s+=a*(d**2)
		d+=a
		#print("%10d %10d"%(d,s))
	return s

while True:
	try:
		n=int(input())
		print(function(n))
	except EOFError:
		break

Submission status: Accepted

Solution code:
import sys
for i in map(int,sys.stdin):
    a = 0
    for j in range(0, 600, i):
        a += j * j
    print(a * i)

Submission status: Accepted

Solution code:
#encoding=utf-8
x = []
ans = 0
while True:
    try:
        x.append(input())
    except:
        break

for i in xrange(len(x)):
    for j in xrange(x[i],600,x[i]):
        ans += j*j*x[i]
    print ans
    ans = 0

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys

for line in sys.stdin:
    d = int(line)
    s = 0
    x = 0
    while x < (600-d):
        s += d*(d+x)*(d+x)
        x += d
    print s

Submission status: Accepted

Solution code:
import sys
x = 600

lines = sys.stdin.readlines()
for line in lines:
    d = int(line)
    s = 0
    for i in range(x//d):
        s += (i * d) ** 2
    print(s * d)

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(input())
    except:
        break

    ans = 0
    x = d
    while x < 600:
        ans += (x ** 2) * d
        x += d
    print(ans)

Submission status: Accepted

Solution code:
while 1:
    ans=0
    try:
        d=input()
        for i in xrange(600/d-1):
            ans+=d*(d*(i+1))**2
        print(ans)
    except:break

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin.readlines():
    d = int(line)
    f = lambda x: x * x
    print(sum(d * f(w) for w in range(d, 600, d)))

Submission status: Accepted

Solution code:
try:
    while(1):
        d = int(input())
        s = 0
        for n in [i * d for i in range(1, 600)]:
            if n >= 600:
                break
            s += (n ** 2)

        print(s * d)
except:
    pass

Submission status: Accepted

Solution code:
#!/usr/bin/env python
import sys

def function(x):
    return x*x

def calculate(d, max):
    val = d
    result = 0
    while val < max:
        result += function(val) * d
        val += d
    return result

if __name__ == '__main__':
    for line in sys.stdin:
        print(calculate(int(line), 600))

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(input())
    except:
        break
    s = 0
    x = 0
    dx = 600//d
    for i in range(dx):
        s += x**2*d
        x += d
    print(s)

Submission status: Accepted

Solution code:
while True:
  ans = 0

  try:
    d = int(raw_input())

    for i in range(1, 600/d):
      h = d*d*i*i
      ans += d*h

    print ans

  except EOFError:
    break

Submission status: Accepted

Solution code:
while True:
	try:
		d = eval(input())
		integral = 0
		for i in range(1, int(600 / d)):
			integral += (i * d) ** 2
		print(integral * d)
	except EOFError:
		break

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(input())
        if not d:
            break
    except:
        break
    s = 0
    for i in range(d, 600, d):
        s += i ** 2 * d
    print(s)

Submission status: Accepted

Solution code:
while 1:
    try:
        d = input()
        print sum(map(lambda x: d * ((x * d) ** 2), [i for i in xrange(600 / d)]))
    except:
        break

Submission status: Accepted

Solution code:
import sys

a = []
for line in sys.stdin:
    a.append(line)

for n in a:
    num=int(n)
    x=0
    are=0
    while x<600:
         are+=(x**2)*num
         x+=num

    print are

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    d = int(line)
    s = 0
    for i in range(600 // d - 1):
        s += d * (d * (i + 1)) ** 2
    print(s)

Submission status: Accepted

Solution code:
while(True):
    try:
        d=int(input())
        sum=0
        for i in range(int(600/d)):
            sum+=(((i*d)**2)*d)
        print(sum)
    except:
        break

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    d = int(line.rstrip())
    print sum(d*D*D for D in xrange(d, 600, d))

Submission status: Accepted

Solution code:
while True:
    s = 0
    try:
        d = int(input())
    except:
        break
    for i in range(d, 600, d):
        s += i**2 * d
    print(s)

Submission status: Accepted

Solution code:
import sys
x = 600
sum = 0
for line in sys.stdin:
    d = int(line)
    sum = 0
    for i in range(1,x//d):
        sum += (i*d)**2*d
    print(sum)

Submission status: Accepted

Solution code:
import sys
for i in map(int,sys.stdin):
    sum=0
    for j in range(600//i-1):
        sum+=i*((j+1)*i)*((j+1)*i)
    print(sum)

Submission status: Accepted

Solution code:
def fun(x):
    K = x**2
    return(K)
Sta = 0
End = 600
while True:
    try:
        h = int(input())
        n = int(600/h)
        Sun = 0
        for i in range(1,n):
            Sun += fun(h*i) * h
        print (Sun)     
    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(input())
    except EOFError:
        break
    S = 0
    for i in range(1, 600//d):
        S += (i*d)**2 * d
    print(S)

Submission status: Accepted

Solution code:
def f(x):
  return x*x
ds=[]
while True:
  try:
    ds.append(int(input()))
  except EOFError:
    break
for d in ds:
  area=0
  for s in range(0,int(600/d)):
    area+=f(s*d)*d
  print(area)

Submission status: Accepted

Solution code:
import sys


if __name__ == '__main__':
    x_limit = 600

    # ??????????????\?????¨???????????????
    for line in sys.stdin:
        d = int(line.strip())  # ????????¢??????????±????

        areas = []  # ????????????????????¢???
        for i in range(0, x_limit, d):  # x=600?????§??????d????????????????????????
            areas.append(d * i**2)  # ???????????¢???????¨????
        print(sum(areas))  # ??¢??????????¨??????¨???

Submission status: Accepted

Solution code:
while True:
    try:
        x = int(input())
        ans = 0
        for i in range(x,600,x):
            y = i**2
            ans += y*x
        print(ans)
    except:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        d=int(input())
        SUM=0
        for i in range(600//d):
            SUM+=(i*d)**2
        print(SUM*d)
    except:
        break

Submission status: Accepted

Solution code:
import sys
D=[]
for line in sys.stdin:
    D.append(int(line))
for d in D:
    print(sum([(((i+1)*d)**2)*d for i in range(int(600/d)-1)]))

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

import sys

def func(x):
    return x**2

def rec(x,d):
    return d*func(x)

array = []
for i in sys.stdin:
    array.append(int(i))

for i in range(len(array)):
    d = array[i]
    k = int(600/d)
    result = 0
    for j in range(k):
        result += rec(j*d,d)

    print(result)

Submission status: Accepted

Solution code:
while 1:
    try:d=int(input())
    except:break
    print(sum([(i*d)**2*d for i in range(600//d)]))

Submission status: Accepted

Solution code:
import sys

while True:
  d = sys.stdin.readline()
  if not d: break
  d = int(d)
  x = d
  sum = 0
  while x < 600:
    sum += x * x * d
    x+=d
  print(sum)

Submission status: Accepted

Solution code:
def integral(d):
    n = 600//d
    s = 0.0
    for i in range(n):
        s += (d*i)**2
    return(s*d)

if __name__ == '__main__':
    while True:
        try:      
            d = int(input())
            print(int(integral(d)))
        except:
            break

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin:
    d = int(line)
    ans = 0;
    for i in range(d,600,d):
        ans += i * i * d
    print(ans)

Submission status: Accepted

Solution code:
import sys
 
def f(x):
    return x ** 2
 
def integral(d):
    s = 0
    for i in range(600 // d - 1):
        s += f(d * (i + 1)) * d
    return s
 
lines = sys.stdin.readlines()
for line in lines:
    print(integral(int(line)))

Submission status: Accepted

Solution code:

import sys

def integral(n):

    sumnum = 0

    for i in range(1,601 - n):
        if i % n == 0:
            sumnum += i * i * n

    return sumnum

if __name__ == '__main__':

    nums = []

    for n in sys.stdin:
        if n == "\n":
            break
        else :
            nums.append(int(n))

    for n in nums:
        print(integral(n))

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(input())
    except:
        break
    print(sum(d * cd ** 2 for cd in range(d, 600, d)))

Submission status: Accepted

Solution code:
import sys

for d in map(int, sys.stdin):
    print(sum(d * cd ** 2 for cd in range(d, 600, d)))

Submission status: Accepted

Solution code:
import sys
import math as mas

for t in sys.stdin:
	i=int(t)
	sum=0
	for j in range(0,600,i):sum+=i*j*j
	print(sum)

#for i in sys.stdin:
#	a,b=map(int,i.split())
#	print(gcd(a,b),lcm(a,b))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys
import os
import math

def f(x):
    return x * x

for s in sys.stdin:
    d = int(s)
    num = 600 // d

    S = 0
    for i in range(num):
        x = d
        y = f(d * i)
        S += x * y
    print(S)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while True:
    try:
        num = int(input())
        m = int(600 / num)
        ans = 0
        for i in range(1,m):
            ans += num * ((num * i)**2)
        print(ans)
    except:
        break

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    n, d = 0, int(line)
    for i in range(d, 600, d):
        n += d * i ** 2
    print(n)

Submission status: Accepted

Solution code:
while True:
  try:
    d = float(input())
    print int(d * sum([(d*i)**2 for i in range(1,int(600/d))]))
  except:
    break

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    d = int(line)
    S = 0
    for x in range(0, 600, d):
        S += (x ** 2) * d
    print(S)

Submission status: Accepted

Solution code:
import fileinput
for x in fileinput.input():
    x = int(x)
    t = 600 // x
    s = 0
    for i in range(1, t):
        s += x * (i * x)**2
    print(s)

Submission status: Accepted

Solution code:
import sys

for user in sys.stdin:
    d = int(user)
    S = 0
    max = int(600/d)
    for i in range(1, max):
        #  f(id) = (id) ** 2
        S += d * ((i * d) ** 2)
    print(S)

Submission status: Accepted

Solution code:
# Aizu Problem 0014: Integral
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


def f(x):
    return x**2


def integral(d):
    s = 0
    dd = d
    while dd <= 600 - d:
        s += d * f(dd)
        dd += d
    return s

    
for line in sys.stdin:
    d = int(line)
    print(integral(d))

Submission status: Accepted

Solution code:
import math
while 1:
    try:
        d=int(input())
        time=600//d
        S=0
        for i in range(time):
            x=i*d
            y=x**2
            S+=y*d
        print(S)
    except EOFError:
        break

Submission status: Accepted

Solution code:
import sys
for l in sys.stdin:
    d = int(l)
    result = 0
    for x in range(d, 600-d+1, d):
        result += d*x**2
    print(result)

Submission status: Accepted

Solution code:
def f(x):
    return pow(x, 2)

while True:
    try:
        d = int(input())
    except:
        break
    print(sum(f(x) * d for x in range(d, 600, d)))

Submission status: Accepted

Solution code:
import sys

def calcIntegral(d:int)->float:
    result = 0
    for x in range(0,600,d):
        result += d*x**2
    return result


if __name__ == '__main__':
    for tmpLine in sys.stdin:
        d = int(tmpLine)
        print(calcIntegral(d))

Submission status: Accepted

Solution code:
t = 0
while t == 0:
    try:
        d = int(input())
    except:
        break
    else:
        print(sum(d * ((i * d) ** 2) for i in range(int(600/d))))

Submission status: Accepted

Solution code:
# coding=utf-8


def square(number: float) -> float:
    return number * number


if __name__ == '__main__':
    while True:
        s = 0
        try:
            d = int(input())
        except EOFError:
            break
        for i in range(600//d):
            s += square(i*d)*d
        print(s)

Submission status: Accepted

Solution code:
from sys import stdin
f = lambda x:x**2

for line in stdin:
    S = 0
    d = int(line)
    for i in range(int(600/d)):
        S += f(d*i)*d
    print(S)

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
  try:
    d = int(line)
    result = 0
    f = d
    while f < 600:
      result += f**2 * d
      f += d
    print(result)
  except:
    break

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(input())
        s = 0
        for i in range(0, 600, d):
            s += d*i**2
        print(s)
    except:
        break

Submission status: Accepted

Solution code:
def f(x):
    return x ** 2

while True:
    try:
        d = int(raw_input())
        sum = 0
        for i in range(0, 600, d):
            #print i,d, sum
            sum += f(i) * d
        print sum
    except:
        break

Submission status: Accepted

Solution code:
# coding: utf-8

def f(x):
	return x**2

while True:
	try:
		d = int(raw_input())
		sum = 0
		for i in range(1,600/d):
			sum += f(i*d) * d
		print(sum)
	except EOFError:
		break

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(input())
    except:
        break
    print(sum(d * x**2 for x in range(d, 600, d)))

Submission status: Accepted

Solution code:
def get_input():
    while True:
        try:
            yield ''.join(input())
        except EOFError:
            break

def f(x):
    return x*x

N = list(get_input())
for l in range(len(N)):
    d = int(N[l])
    n = int(600 / d)
    S = 0
    for i in range(n-1):
        #print(d+d*i, f(d+d*i))
        S = S + d*f(d+d*i)
    print(S)

Submission status: Accepted

Solution code:
import sys
for d in map(int,sys.stdin):print(sum([i*i*d for i in range(d,600,d)]))

Submission status: Accepted

Solution code:
# coding: utf-8
import sys

for line in sys.stdin:
    d = int(line)
    x = 0
    surface = 0
    for _ in range(int(600 / d) - 1):
        x += d
        surface += d * (x ** 2)
    print(surface)

Submission status: Accepted

Solution code:
while True:
	try: d = int(input())
	except: break
	print(sum([(i*d)**2*d for i in range(600//d)]))

Submission status: Accepted

Solution code:
f=lambda x:x**2
while True:
    try:d=int(input())
    except:break
    t=[]
    for i in range(600//d):
       t.append(d*f(d*i))
    print(sum(t))

Submission status: Accepted

Solution code:
while True:
  try:
    d = int(input())
    s = 0
    for i in range(d,600,d):
      s += d * i * i
    print(s)
  except EOFError:
    break

Submission status: Accepted

Solution code:
import sys
[print(sum([i ** 2 for i in range(int(e), 600, int(e))]) * int(e)) for e in sys.stdin]

Submission status: Accepted

Solution code:
import sys

a, b = 0, 600


def f(x):
    return x ** 2


if __name__ == '__main__':
    for line in sys.stdin:
        d = int(line)
        sum = 0
        for i in range(a, b, d):
            sum += d * f(i)
        print(sum)

Submission status: Accepted

Solution code:
import sys
S=lambda s:sum([((i*s)**2)*s for i in range(int(600/s))])
[print(i) for i in [S(int(line)) for line in sys.stdin]]

Submission status: Accepted

Solution code:
# AOJ 0014 Integral
# Python3 2018.6.10 bal4u

while True:
    try:
        d = int(input())
        sum = 0
        for x in range(d, 600, d):
            sum += d * x**2
        print(sum)
    except EOFError:
        break

Submission status: Accepted

Solution code:
# AOJ 0014 Integral
# Python3 2018.6.10 bal4u

import sys

for d in sys.stdin:
    a = int(d)
    print(sum(a * x**2 for x in range(a, 600, a)))

Submission status: Accepted

Solution code:
import sys

def calc(N):
    tmp = 0
    cur = 0
    while cur < 600:
        tmp += cur ** 2 * N
        cur += N
    return tmp


for line in sys.stdin.readlines():
    line = line.strip()
    N = int(line)
    print calc(N)

Submission status: Accepted

Solution code:
import sys
total=0
for i in sys.stdin.readlines():
    total=0
    d=int(i)
    for c in range(0,600,d):
        total+=d*c**2
    print total

Submission status: Accepted

Solution code:
import sys
for i in sys.stdin:
    d=int(i)
    print sum([x**2*d for x in xrange(0,600,d)])

Submission status: Accepted

Solution code:
def f(x):
    return x**2

while 1:
    try:
        d0 = raw_input()
        if d0 == '':
            break
        area = []
        d = int(d0)
        for i in range(d, 600, d):
            area.append(d*f(i))
        Sumpoyo = sum(area)
        print Sumpoyo
    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        d = input()
        sum = 0
        for x in range(0,600,d):
            sum = sum + d*x**2
        print sum
    except EOFError:
        break

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# coding: utf-8


f = lambda x: x ** 2


def calc_area(d):
    area = 0
    for i in xrange(1, 600 / d):
        area += f(d * i) * d
    return area


def main():
    while 1:
        try:
            d = int(raw_input())
        except EOFError:
            return
        print calc_area(d)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def datasets():
    import sys
    while True:
        s = sys.stdin.readline()
        if len(s) < 2:
            break
        yield int(s)

for n in datasets():
    print sum([x*x*n for x in range(n, 600, n)])

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(raw_input())
    except EOFError:
        break
    if d == 600:
        print 0
    else:
        rects = map(lambda x:d*x*x,range(d, 600, d))
        print reduce(lambda x,y:x+y,rects)

Submission status: Accepted

Solution code:
while True:
	try:
		d = int(raw_input())
		s = 0
		for i in range(d,600,d):
			s += i**2 * d
		print(s)
	except EOFError:
		break

Submission status: Accepted

Solution code:
from __future__ import (division, absolute_import, print_function,
                        unicode_literals)
from sys import stdin

for line in stdin:
    if not line.strip():
        continue
    d = int(line)
    print(sum(d * nd ** 2 for nd in xrange(0, 600, d)))

Submission status: Accepted

Solution code:
import sys

for l in sys.stdin:
    d=int(l)
    print(d*sum(map(lambda x:x**2,range(0,600,d))))

Submission status: Accepted

Solution code:
while True:
	try:
		d = raw_input()
		size = 0
		d = int(d)
		fd = d
		for x in range(1,600/d):
			size += d*(fd**2)
			fd += d
		print size
	except: break

Submission status: Accepted

Solution code:

import sys


def integral(x, d):
    ds = range(d, x, d)
    ds2 = map((lambda a: a**2 * d), ds)
    ds3 = reduce((lambda b, c: b + c), ds2, 0)
    return ds3


#input_file = open(sys.argv[1], "r")

#for line in input_file:
for line in sys.stdin:
    d = int(line)
    area = integral(600, d)
    print area

Submission status: Accepted

Solution code:
def fx(x):
    return x*x

while True:
    try:
        d = int(raw_input())
        b = 600 / d
        su = 0
        i = 0

        while b > 0:
            b -= 1
            su += fx(b*d)*d

        print su

    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        n = input()
        s=0
        for i in range(n, 600, n):
            s += i**2 * n
        print s
    except:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(raw_input())
        r = 0
        for i in range(d, 600, d):
            r += i * i * d
        print r
    except EOFError:
        break

Submission status: Accepted

Solution code:
#! /usr/bin/python

import sys

def main():
	for input in sys.stdin:
		dx = int(input)
		area = integral(dx)
		print(area)

def integral(dx):
	x = 0
	area = 0
	while x < 600:
		area += f(x) * dx
		x += dx

	return area;

def f(x):
	return x * x

main()

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    result = 0
    d = int(line)
    x = d
    while x < 600:
        result += x**2 * d
        x += d
    print result

Submission status: Accepted

Solution code:
while 1:
    s = f = 0
    try:
        d = input()
    except:
        break
    while f < 600:
        s += (f ** 2) * d
        f += d
    print s