태그 : 500p 요약보기전체보기목록닫기
- Dragons(0)2020.12.29
- ExerciseMachine(0)2020.02.27
- TreasureHunt(0)2019.12.20
- WaterPressure(0)2019.09.09
- ResistorCombinations(0)2019.07.10
- JarBox(0)2019.06.16
- StringTrain(0)2019.05.27
- TennisRallies(0)2019.04.13
- TicSolver(0)2019.02.17
- GreedyChange(0)2018.06.19
1 2
Problem각 면에 용이 살고 있는 정육면체가 있다. 용은 음식이 담긴 그릇을 갖고 있고, 음식의 양은 면에 표시된다. 매 차례마다 다음 일이 발생한다: 용은 자기와 근접한 면에 있는 용의 음식을 1/4만큼 가지고 올 수 있다. 정육면체 위쪽에 살고 있는 용들의 대장 스노그의 최종 음식의 양을 구하고 "X/Y" 형태의 문자열로 반환하라.Constrai...
- Topcoder
- 2020/02/27 15:26
Codepublic class ExerciseMachine { public int getPercentages(String time) { int total = Integer.parseInt(time.substring(0, 2)) *...
- Topcoder
- 2019/12/20 20:40
Codepublic class TreasureHunt{ int xLen,yLen; char[][] land; String[] inst; boolea...
- Topcoder
- 2019/09/09 01:56
Codeimport java.util.ArrayList;public class WaterPressure{ int[] dy = {-1,0,1,0}; int[] dx = {0,1,0,-1}; class Point {  ...
- Topcoder
- 2019/07/10 14:27
Codeimport java.util.ArrayList;import java.util.HashSet;public class ResistorCombinations{ double t, closest, res; ArrayList<ArrayList<Integer>...
Codepublic class JarBox{ public int numJars(int radius, int woodlength) { int m = 1; &n...
- Topcoder
- 2019/05/27 04:14
Codepublic class StringTrain{ public String buildTrain(String[] cars) { String train = cars[0]; for (int i=1; i < cars.length; i...
- Topcoder
- 2019/04/13 12:02
Codepublic class TennisRallies{ int rec(int index, int numLength, String curr, int allowed, String[] forbidden) { if(index == nu...
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...
- Topcoder
- 2018/06/19 17:20
Codeimport java.util.Arrays;public class GreedyChange{ public int smallest(int[] denoms) { Arrays.sort(denoms);  ...
1 2
최근 덧글