PostAddsense


태그 : 250p 요약보기전체보기목록닫기

1 2 3

Isoceles

Codepublic class Isoceles {    int[] x;    int[] y;    int dst(int a, int b) {        return (x[a]-x[b])*(x[a]-x[b])+(y[a]-y[b])*(y[a]-y[b]);  ...

Archimedes

Codepublic class Archimedes {    public double approximatePi(int numSides) {        double d = 2 * Math.PI / numSides / 2;  // 2*Math.PI is 360 degrees.  &nbs...
1 2 3