PostAddsense


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

1 2 3 4 5 6 7

Masterbrain

Codepublic class Masterbrain{    String score(String g, String p) {        int b = 0, w = 0;       &nbs...

BridgeCrossing

Codeimport java.util.Arrays;public class BridgeCrossing{    int n, min;    boolean[] a;    int[] times;    void go(int...

RectangularGrid

Codepublic class RectangularGrid{    public long countRectangles(int width, int height) {        long res = 0;    &nbs...

HillHike

Codepublic class HillHike{    public long numPaths(int distance, int maxHeight, int[] _landmarks) {        long[][][] cache1 = new long[2]...

Bonuses

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

VendingMachine

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

ExerciseMachine

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

PenLift

Codeimport java.util.ArrayList;public class PenLift{    int len, size;    boolean[] usedS, usedV;    int[] nv;    &nbs...

Lottery

Codeimport java.util.Arrays;import java.util.Comparator;public class Lottery{    long perm(long a, long b) {        long num = 1; &nb...

PowerOutage

Codeimport java.util.LinkedList;import java.util.Queue;public class PowerOutage{    public int estimateTimeout(int[] fromJunction, int[] toJunction, int[] ductLength) { &nbs...
1 2 3 4 5 6 7