태그>500p(총 12개의 글)
'500p' 관련 최근글
-
- TreasureHunt
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/12/20 20:40
Code public class TreasureHunt{ int xLen,yLen; char[][] land; String[] inst; boolean instCheck(int x, int y) { int[] dx = {0,-1,1,0}; int[] dy = {-1,0,0,1}; fo..
- TreasureHunt
-
- WaterPressure
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/09/09 01:56
Code import java.util.ArrayList; public class WaterPressure{ int[] dy = {-1,0,1,0}; int[] dx = {0,1,0,-1}; class Point { int x,y; Point(int x, int y) { this.x = x; this.y = y; } } public int howLong(String[] layout) { int..
Topcoder, Easy, Simulation, 500p, BFS
- WaterPressure
-
- ResistorCombinations
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/07/10 14:27
Code import java.util.ArrayList;import java.util.HashSet; public class ResistorCombinations{ double t, closest, res; ArrayList getSet(ArrayList copy, int idx, int n, int size) { ArrayList S = new ArrayList(); for (int i = idx; i &l..
Topcoder, Easy, 500p, BruteForce, 조합
- ResistorCombinations
-
-
- StringTrain
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/05/27 04:14
Code public class StringTrain{ public String buildTrain(String[] cars) { String train = cars[0]; for (int i=1; i < cars.length; i+) { for (int j = cars[i].length()-1; j > 0; j-) { String s1 = cars[i].substring(0,j); if (!trai..
- StringTrain
-
- TennisRallies
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/04/13 12:02
Code public class TennisRallies{ int rec(int index, int numLength, String curr, int allowed, String[] forbidden) { if(index = numLength) return 1; int ret = 0; for (char stroke = 'c'; stroke <= 'd'; stroke+) { int newAllowed ..
- TennisRallies
-
- TicSolver
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/02/17 07:03
Code public class TicSolver{ char[][] board; char ch; int[] y1 = {0,0,2,2,1,0,0,0}; int[] x1 = {0,2,2,0,0,1,0,2}; int[] y2 = {0,1,2,1,1,1,1,1}; int[] x2 = {1,2,1,0,1,1,1,1}; int[] y3 = {0,2,2,0,1,2,2,2}; int..
- TicSolver
-
- GreedyChange
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2018/06/19 17:20
Code import java.util.Arrays;public class GreedyChange{ public int smallest(int[] denoms) { Arrays.sort(denoms); int max = denoms[denoms.length-1]*2; int[] mins = new int[max+1]; for (int i=1; i<=max; i+) mins[..
- GreedyChange
-
- 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
-
- Escape
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2018/06/07 18:46
Code import java.util.LinkedList;public class Escape{ int[] dx = {1,0,-1,0}; int[] dy = {0,1,0,-1}; int[][] map, dist; boolean[][] used; class node { int x,y; node(int x, int y) { this.x = x; this.y = y; } } pub..
- Escape
-
- 서든어택 이정도는 해줘야 좀쏘는건가요???
-
★덕후흉악범의 비밀기지★!! by 덕후흉악범|2009/08/06 13:21
보시다 싶이 오랜만에 서든 좋은 기록이 나왓네요 ㅎㅎ 뭐 최고기록은 아니지만 그래도 498원의 포인트 만족합니다. 써든 오래하다보니 점점 실력이 느는것같네요 그래도 예전 최고기록 노버그 노핵으로 웨어에서 160 ..
- 서든어택 이정도는 해줘야 좀쏘는건가요???