PostAddsense


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

1 2

Bonuses

Codepublic class Bonuses{    public int[] getDivision(int[] points) {        int len = points.length;      &...

VendingMachine

Codepublic class VendingMachine{    int rows, cols;    int ts;                ...

TreasureHunt

Codepublic class TreasureHunt{        int xLen,yLen;    char[][] land;    String[] inst;    boolea...

WaterPressure

Codeimport java.util.ArrayList;public class WaterPressure{    int[] dy = {-1,0,1,0};    int[] dx = {0,1,0,-1};    class Point {  ...

Planets

Codeimport java.text.DecimalFormat;public class Planets{    public String[] locations(String[] planets, int time) {        double G = 6.67...

Mandelbrot

Codepublic class Mandelbrot{    public int iterations(int max, double a, double b) {        double za = a, zb = b;        for (int i=0; i <= max;...

BitmapToGraph

Codeimport java.util.TreeSet;public class BitmapToGraph{    int[] dx = {-1,0,1,1,1,0,-1,-1};    int[] dy = {-1,-1,-1,0,1,1,1,0};    int n,...

UserId

Codepublic class UserId{    String[] iu;    String delch(String s) {        return s.replace(" ","").replace("'","");    }    boolean...

Inchworm

Codepublic class Inchworm {    public int gcd(int a, int b) {        return b==0 ? a : gcd(b,a%b);    }    int lcm(int a, i...

Rochambo

Codepublic class Rochambo {    public int wins(String opponent) {        int w=0;        if(opponent.charAt(0) == 'S') w++;      &nbs...
1 2