Created
December 4, 2011 16:09
-
-
Save mojaie/1430554 to your computer and use it in GitHub Desktop.
AOJ:0014
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scn = new Scanner(System.in); | |
while (scn.hasNext()) { | |
int d = scn.nextInt(); | |
int n = 600 / d; | |
int area = 0; | |
for (int i = 1; i < n; i++) { | |
area = area + (d * d * d * i * i); | |
} | |
System.out.println(area); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment