태그>math(총 60개의 글)
'math' 관련 최근글
-
- 몸짱 트레이너 라이언의 고민
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2020/12/03 09:32
문제 예약제로 운영하는 헬스장을 이용하는 손님들이 옷을 갈아입을 때 불편하지 않게 보관함을 최대한 떨어져서 주려고 한다. 보관함 간의 거리를 구하라. 입력 형식 0 < n <= 100 <= m <= 1,000timet..
- 몸짱 트레이너 라이언의 고민
-
- LaTeX/Mathematics
-
SCIENART BB by SCIENART BB|2020/09/08 13:09
LaTeX/Mathematics 도날드 누스가 오리지널 TeX 시스템을 개발하기 시작한 큰 동기중 하나는 프린트될때 전문적으로 보여질 수식을 작성할 단순한 방식을 만들기 위한 것이었다. 이 것이 과학 커뮤니티에서 TeX가 인기있게 된 게 사실이다. 타입세팅 수학은 LaTeX의 강점..
- LaTeX/Mathematics
-
- WEBGL - 행렬과 행렬의 연산
-
링고파이 by 링고파이|2020/05/18 17:58
기존 글에서 행렬에 대한 언급을 했다. 행열이란 숫자가 행과, 열로 나뉘어서 배치 되어 있는 형태의 상수를 의미한다. 보통 아래과 같은 그림과 같이 표기한다. 위의 이미지와 같이 행열을 구성하는 작은 데이터..
행렬, javascript, webgl, math, 개발
- WEBGL - 행렬과 행렬의 연산
-
- RectangularGrid
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2020/03/15 02:32
Code public class RectangularGrid{ public long countRectangles(int width, int height) { long res = 0; for(int i = 0; i < height; i+) { for(int j = 0; j < width; j+) { if(i = j) continue; res = (height-i) * (width-j); } } return ..
- RectangularGrid
-
- WhichData
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/11/02 09:16
Code import java.util.ArrayList;import java.util.Arrays; public class WhichData{ public int[] bestVariance(int[] sampleData, int varNum, int varDen) { Arrays.sort(sampleData); int sdLen = sampleData.length; double var ..
Topcoder, Easy, 300p, BruteForce, Math
- WhichData
-
- Mandelbrot
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/06/14 18:52
Code public class Mandelbrot{ public int iterations(int max, double a, double b) { double za = a, zb = b; for (int i=0; i <= max; i+) { if (za*za+zb*zb > 4) return i; double a2 = za*za - zb*zb + a; double b2 = 2*za*zb + ..
Topcoder, Easy, 450p, Math, Simulation
- Mandelbrot
-
- DivideByZero
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/05/29 06:24
Code import java.util.Arrays;import java.util.HashSet; public class DivideByZero{ public int CountNumbers(int[] numbers) { HashSet paper = new HashSet(); for (int i : numbers) paper.add(i); int old = 0; while (paper.si..
Topcoder, Easy, 250p, BruteForce, Math
- DivideByZero
-
- Inchworm
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/05/28 18:46
Code public class Inchworm { public int gcd(int a, int b) { return b=0 ? a : gcd(b,a%b); } int lcm(int a, int b) { return a*b / gcd(a,b); } public int lunchtime(int branch, int rest, int leaf) { return branch/lcm(rest,leaf) ..
Topcoder, Easy, 250p, Math, Simulation
- Inchworm
-
- Scale
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/05/14 06:04
Code public class Scale{ public String[] scale(int x, int y, String[] image) { int m = image.length; int n = image[0].length(); char[][] big = new char[y*m][x*n]; String[] sol = new String[y]; for(int i=0; i < y; ..
- Scale
-
- ExerciseMachine
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2018/06/08 18:21
Code public class ExerciseMachine { public int getPercentages(String time) { int total = Integer.parseInt(time.substring(0, 2)) * 60 * 60 + Integer.parseInt(time.substring(3, 5)) * 60 + Integer.parseInt(time.substring(6, 8))..
- ExerciseMachine
-
- java linear algebra libraries
-
공부가 본업. by 언제나19|2016/06/06 18:32
기능 비교표에서 기능 적당히 많고 비교적 최신 것 쓰기https://java-matrix.org/ 필수 기능은 multi threading 결론은https://sites.google.com/site/piotrwendykier/software/parallelcolt net.sourceforge.parallelcolt » parallelcolt » 0.10.0 under Vector/..
- java linear algebra libraries
-
- Archimedes
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2016/04/08 06:51
Code public class Archimedes { public double approximatePi(int numSides) { double d = 2 * Math.PI / numSides / 2; // 2*Math.PI is 360 degrees. return numSides * Math.sin(d); }} Ex..
Topcoder, Easy, 250p, Math, Simulation
- Archimedes