PostAddsense


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

1

ExerciseMachine

Codepublic class ExerciseMachine {    public int getPercentages(String time) {        int total = Integer.parseInt(time.substring(0, 2)) *...

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 {  ...

ResistorCombinations

Codeimport java.util.ArrayList;import java.util.HashSet;public class ResistorCombinations{    double t, closest, res;    ArrayList<ArrayList<Integer>...

JarBox

Codepublic class JarBox{    public int numJars(int radius, int woodlength) {        int m = 1;       &n...

StringTrain

Codepublic class StringTrain{    public String buildTrain(String[] cars) {        String train = cars[0];        for (int i=1; i < cars.length; i...

TennisRallies

Codepublic class TennisRallies{    int rec(int index, int numLength, String curr, int allowed, String[] forbidden) {        if(index == nu...

TicSolver

Codepublic class TicSolver{    char[][] board;    char ch;    int[] y1 = {0,0,2,2,1,0,0,0};    int[] x1 = {0,2,2,0,0,1...

GreedyChange

Codeimport java.util.Arrays;public class GreedyChange{    public int smallest(int[] denoms) {        Arrays.sort(denoms);   ...

Escape

Codeimport java.util.LinkedList;public class Escape{    int[] dx = {1,0,-1,0};    int[] dy = {0,1,0,-1};    int[][] map, dist;    boolean[][] used;  &nbs...
1