PostAddsense


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

1

WaterPressure

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

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