Code Monkey home page Code Monkey logo

ps's People

Contributors

hamtory06 avatar hekaline avatar jangbeomjun avatar sanghyun0505 avatar suw0n avatar wlals1126 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ps's Issues

programmers - ์„์œ ์‹œ์ถ”

ํšจ์œจ์„ฑ ํ…Œ์ŠคํŠธ ์‹œ๊ฐ„์ดˆ๊ณผ๋‚˜๋„ค์š” ใ…œใ…œ

    public int solution(int[][] land) {
        int answer = 0;

        int n = land.length;
        int m = land[0].length;

        for(int i = 0; i<m; i++) {
            int cnt = 0;
            boolean[][] visit = new boolean[n][m];
            for(int j = 0; j<n; j++) {
                if(land[j][i] == 1 && !visit[j][i]) {
                    Queue<Place> que = new LinkedList<>();
                    que.add(new Place(j, i));

                    while(!que.isEmpty()) {
                        Place place = que.poll();
                        int x = place.x;
                        int y = place.y;

                        if(!visit[x][y]) {
                            cnt++;
                            visit[x][y] = true;

                            if(x + 1 < n && land[x + 1][y] == 1 && !visit[x + 1][y]) {
                                que.add(new Place(x + 1, y));
                            }
                            if(x - 1 > -1 && land[x - 1][y] == 1 && !visit[x - 1][y]) {
                                que.add(new Place(x - 1, y));
                            }
                            if(y + 1 < m && land[x][y + 1] == 1 && !visit[x][y + 1]) {
                                que.add(new Place(x, y + 1));
                            }
                            if(y - 1 > -1 && land[x][y - 1] == 1 && !visit[x][y - 1]) {
                                que.add(new Place(x, y - 1));
                            }
                        }
                    }
                }
            }

            answer = Math.max(answer, cnt);
        }

        return answer;
    }

    static class Place {

        int x, y;

        Place(int x, int y) {
            this.x = x;
            this.y = y;
        }

    }

boj - ํƒˆ์ถœ 3055

์™œ ํ‹€๋ฆด๊นŒ..? ์˜ˆ์‹œ๋Š” ๋‹ค ๋งž์Œ.

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.LinkedList;
import java.util.Queue;
import java.util.StringTokenizer;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());

        int r = Integer.parseInt(st.nextToken());
        int c = Integer.parseInt(st.nextToken());
        int startX = 0, startY = 0;
        char[][] map = new char[r][c];

        for(int i = 0; i<r; i++) {
            String s = br.readLine();
            for(int j = 0; j<c; j++) {
                map[i][j] = s.charAt(j);
                if(map[i][j] == 'S') {
                    startX = i;
                    startY = j;
                }
            }
        }

        boolean[][] visit = new boolean[r][c];
        Queue<Place> que = new LinkedList<>();
        que.add(new Place(startX, startY,0));

        int minute = 0;
        while(!que.isEmpty()) {
            Place place = que.poll();
            int x = place.x;
            int y = place.y;
            int dis = place.dis;

            if(minute != dis) {
                for(int i = 0; i<r; i++) {
                    for(int j = 0; j<c; j++) {
                        if(map[i][j] == '*') {
                            if(i + 1 < r && map[i + 1][j] == '.') {
                                map[i + 1][j] = '*';
                            }
                            if(i - 1 > -1 && map[i - 1][j] == '.') {
                                map[i - 1][j] = '*';
                            }
                            if(j + 1 < c && map[i][j + 1] == '.') {
                                map[i][j + 1] = '*';
                            }
                            if(j - 1 > -1 && map[i][j - 1] == '.') {
                                map[i][j - 1] = '*';
                            }
                        }
                    }
                }
                minute++;
            }

            if(!visit[x][y]) {
                visit[x][y] = true;

                if(map[x][y] == 'D') {
                    System.out.print(dis);
                    return ;
                }

                if(x + 1 < r && (map[x + 1][y] == '.' || map[x + 1][y] == 'D')) {
                    que.add(new Place(x + 1, y, dis + 1));
                }
                if(x - 1 > -1 && (map[x - 1][y] == '.' || map[x - 1][y] == 'D')) {
                    que.add(new Place(x - 1, y, dis + 1));
                }
                if(y + 1 < c && (map[x][y + 1] == '.' || map[x][y + 1] == 'D')) {
                    que.add(new Place(x, y + 1, dis + 1));
                }
                if(y - 1 > -1 && (map[x][y - 1] == '.' || map[x][y - 1] == 'D')) {
                    que.add(new Place(x, y - 1, dis + 1));
                }
            }
        }
        System.out.print("KAKTUS");
    }

    static class Place {

        int x, y, dis;

        Place(int x, int y, int dis) {
            this.x = x;
            this.y = y;
            this.dis = dis;
        }

    }

}

programmers - ์˜ˆ์ƒ ๋Œ€์ง„ํ‘œ

๋งž์™œํ‹€? ์•Œ๊ณ ๋ฆฌ์ฆ˜์ด ๊ทธ๋ƒฅ ๋– ์˜ค๋ฅด๋Š” ๋Œ€๋กœ ํ•ด์„œ ํ‹€๋ ธ์„ ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

class Solution{
    public int solution(int n, int a, int b){
        int answer=0;
        for(int i=1;i<n;i*=2){
            answer++;
        }
        int s=1,l=n;
        int m=(s+l)/2;
        boolean flag=true;
        if(a>b){
            int temp=a;
            a=b;
            b=temp;
        }
        while(flag){
            flag=false;
            if(s<=a && m>=b){
                l=m;
                m=(s+l)/2;
                flag=true;
            }
            if(m<a && l>=b){
                s=m+1;
                m=(s+l)/2;
                flag=true;
            } 
            if(flag) answer--;
        }
        return answer;
    }
}

๋ฌธ์ œ : https://school.programmers.co.kr/learn/courses/30/lessons/12985#

boj - ๋†์žฅ ๊ด€๋ฆฌ

๋ฌธ์ œ ๋งํฌ

11%์—์„œ ํ‹€๋ฆฌ๋„ค์š”.. ๋„์™€์ฃผ์„ธ์š”..

๋ฌธ์ œ ์„ค๋ช…

๋†๋ถ€ ๋ฏผ์‹์ด๊ฐ€ ๊ด€๋ฆฌํ•˜๋Š” ๋†์žฅ์€ Nร—M ๊ฒฉ์ž๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ๋‹ค. ๋ฏผ์‹์ด๋Š” ๋†์žฅ์„ ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•ด ์‚ฐ๋ด‰์šฐ๋ฆฌ๋งˆ๋‹ค ๊ฒฝ๋น„์›๋ฅผ ๋ฐฐ์น˜ํ•˜๋ ค ํ•œ๋‹ค. ์ด๋ฅผ ์œ„ํ•ด ๋†์žฅ์— ์‚ฐ๋ด‰์šฐ๋ฆฌ๊ฐ€ ์ด ๋ช‡ ๊ฐœ ์žˆ๋Š”์ง€๋ฅผ ์„ธ๋Š” ๊ฒƒ์ด ๋ฌธ์ œ๋‹ค.

์‚ฐ๋ด‰์šฐ๋ฆฌ์˜ ์ •์˜๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค. ์‚ฐ๋ด‰์šฐ๋ฆฌ๋Š” ๊ฐ™์€ ๋†’์ด๋ฅผ ๊ฐ€์ง€๋Š” ํ•˜๋‚˜์˜ ๊ฒฉ์ž ํ˜น์€ ์ธ์ ‘ํ•œ ๊ฒฉ์ž๋“ค์˜ ์ง‘ํ•ฉ์œผ๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ๋‹ค. (์—ฌ๊ธฐ์„œ "์ธ์ ‘ํ•˜๋‹ค"์˜ ์ •์˜๋Š” X์ขŒํ‘œ ์ฐจ์ด์™€ Y์ขŒํ‘œ ์ฐจ์ด ๋ชจ๋‘ 1 ์ดํ•˜์ผ ๊ฒฝ์šฐ๋กœ ์ •์˜๋œ๋‹ค.) ๋˜ํ•œ ์‚ฐ๋ด‰์šฐ๋ฆฌ์™€ ์ธ์ ‘ํ•œ ๊ฒฉ์ž๋Š” ๋ชจ๋‘ ์‚ฐ๋ด‰์šฐ๋ฆฌ์˜ ๋†’์ด๋ณด๋‹ค ์ž‘์•„์•ผํ•œ๋‹ค.

๋ฌธ์ œ๋Š” ๊ฒฉ์ž ๋‚ด์— ์‚ฐ๋ด‰์šฐ๋ฆฌ์˜ ๊ฐœ์ˆ˜๊ฐ€ ์ด ๋ช‡ ๊ฐœ์ธ์ง€ ๊ตฌํ•˜๋Š” ๊ฒƒ์ด๋‹ค.

์ž…๋ ฅ :
8 7
4 3 2 2 1 0 1
3 3 3 2 1 0 1
2 2 2 2 1 0 0
2 1 1 1 1 0 0
1 1 0 0 0 1 0
0 0 0 1 1 1 0
0 1 2 2 1 1 0
0 1 1 1 2 1 0

๋‹ต : 3

O๋Š” ์‚ฐ๋ด‰์šฐ๋ฆฌ, "์ธ์ ‘ํ•˜๋‹ค"๋Š” ์ƒํ•˜์ขŒ์šฐ ๋Œ€๊ฐ์„ 
O X X X X X O
X X X X X X O
X X X X X X X
X X X X X X X
X X X X X X X
X X X X X X X
X X O O X X X
X X X X O X X

์ฝ”๋“œ

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());

        int n = Integer.parseInt(st.nextToken());
        int m = Integer.parseInt(st.nextToken());
        int[][] farm = new int[n][m];

        for(int i = 0; i<n; i++) {
            StringTokenizer st2 = new StringTokenizer(br.readLine());
            for(int j = 0; j<m; j++) {
                farm[i][j] = Integer.parseInt(st2.nextToken());
            }
        }

        int result = 0;
        boolean[][] top = new boolean[n][m];
        Set<Grid> topSet = new HashSet<>();
        for(int i = 0; i<n; i++) {
            for(int j = 0; j<m; j++) {
                if(!top[i][j]) {
                    result++;
                    topSet.clear();
                    boolean isTop = true;

                    boolean[][] visit = new boolean[n][m];
                    Queue<Grid> que = new LinkedList<>();
                    que.add(new Grid(i, j));

                    while(!que.isEmpty()) {
                        Grid grid = que.poll();
                        int x = grid.x;
                        int y = grid.y;
                        int height = farm[x][y];

                        if(!visit[x][y]) {
                            visit[x][y] = true;
                            int[] xArr = {x - 1, x, x + 1};
                            int[] yArr = {y - 1, y, y + 1};
                            topSet.add(new Grid(x, y));

                            for(int k = 0; k<3 && isTop; k++) {
                                for(int l = 0; l<3; l++) {
                                    if(k == x && l == y) {
                                        break;
                                    }

                                    if(xArr[k] > -1 && xArr[k] < n && yArr[l] > -1 && yArr[l] < m) {
                                        int compare = farm[xArr[k]][yArr[l]];
                                        if(compare > height) {
                                            result--;
                                            isTop = false;
                                            que.clear();
                                            break;
                                        } else if(compare == height) {
                                            que.add(new Grid(xArr[k], yArr[l]));
                                        }
                                    }
                                }
                            }
                        }
                    }

                    if(isTop) {
                        for(Grid grid : topSet) {
                            top[grid.x][grid.y] = true;
                        }
                    }
                }
            }
        }
        System.out.print(result);
    }

    static class Grid {

        int x, y;

        Grid(int x, int y) {
            this.x = x;
            this.y = y;
        }

    }

}

programmers - ํ”„๋กœ์„ธ์Šค

์ด ์ฝ”๋“œ์˜ ์‹œ๊ฐ„๋ณต์žก๋„๋ฅผ ๊ฐœ์„ ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์„ ๊ณ ๋ฏผํ•ด๋ด…์‹œ๋‹ค. (๋ฌธ์ œ ํ’€๊ณ  ์ฝ”๋“œ ์˜ฌ๋ ค์ฃผ์„ธ์š”~ ์–ธ์–ด ์ œํ•œ X)

import java.util.LinkedList;
import java.util.Queue;
import java.util.concurrent.atomic.AtomicBoolean;

public class Solution {

    public int solution(int[] priorities, int location) {
        int answer = 0;
        Queue<Process> que = new LinkedList<>();

        for(int i = 0; i<priorities.length; i++) {
            que.add(new Process(i, priorities[i]));
        }

        int cnt = 1;
        while(!que.isEmpty()) {
            AtomicBoolean canWork = new AtomicBoolean(true);
            Process process = que.poll();

            que.forEach(p -> {
                if(p.priority > process.priority) {
                    canWork.set(false);
                }
            });

            if(canWork.get()) {
                if(process.index == location) {
                    answer = cnt;
                }
                cnt++;
            } else {
                que.add(process);
            }
        }

        return answer;
    }

    static class Process {

        int index, priority;

        Process(int index, int priority) {
            this.index = index;
            this.priority = priority;
        }

    }

}

boj - ๊ฒŒ์ž„ 1072

์•„๋ž˜์˜ ํ’€์ด ๋ง๊ณ ๋„ ํ›จ์”ฌ ๋งŽ์€ ํ’€์ด๊ฐ€ ๋‚˜์˜ฌ ์ˆ˜ ์žˆ์„๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค.
ํ•œ ๋ฒˆ ํ’€์–ด๋ณด์„ธ์š”.

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());

        int answer = Integer.MAX_VALUE;
        int x = Integer.parseInt(st.nextToken());
        int y = Integer.parseInt(st.nextToken());

        int z = (int) (y * 100.0 / x);
        int l = 1;
        int r = x;
        while(l<=r) {
            int m = (l + r) / 2;
            int newZ = (int) ((y + m) * 100.0 / (x + m));

            if(newZ > z) {
                answer = Math.min(answer, m);
                r = m - 1;
            } else {
                l = m + 1;
            }
        }

        System.out.println(answer == Integer.MAX_VALUE ? -1 : answer);
    }

}

programmers - ํƒ๋ฐฐ ๋ฐฐ๋‹ฌ๊ณผ ์ˆ˜๊ฑฐํ•˜๊ธฐ

์ž๋ฃŒ๊ตฌ์กฐ์—†์ด ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ์„๊ฒƒ ๊ฐ™์•„ ํ•ด๋ดค๋Š”๋ฐ, ์˜ค๋‹ต๊ณผ ์‹œ๊ฐ„์ดˆ๊ณผ๊ฐ€ ๋‚˜๋„ค์š”(85์ )
ํ•œ ์ˆ˜ ๊ฐ€๋ฅด์ณ์ฃผ์„ธ์š”

class Solution {
    public long solution(int cap, int n, int[] deliveries, int[] pickups) {
        long answer = 0;
        int deliver,pick;
        boolean first,last;
        while(true){
            deliver=cap;
            pick=cap;
            first=true;
            last=true;
            for(int i=n-1;i>=0;i--){
                if(i==0 && deliveries[i]==0 && pickups[i]==0) return answer;
                if(deliveries[i]!=0){
                    if(first){
                        first=false;
                        answer+=(i+1)*2;
                    }
                    if(deliveries[i]<=deliver){
                        deliver-=deliveries[i];
                        deliveries[i]=0;
                    }else{
                        deliveries[i]-=deliver;
                        deliver=0;
                        if(last){
                            n=i+1;
                            last=false;
                        }
                    }
                }
                if(pickups[i]!=0){
                    if(first){
                        first=false;
                        answer+=(i+1)*2;
                    }
                    if(pickups[i]<=pick){
                        pick-=pickups[i];
                        pickups[i]=0;
                    }else{
                        pickups[i]-=pick;
                        pick=0;
                        if(last){
                            n=i+1;
                            last=false;
                        }
                    }
                }
                if(pick==0 && deliver==0) break;
            }
        }
    }
}

๋ฐฑ์ค€ ๊ด€๋ จ ํฌ๋กฌ ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ ์ถ”์ฒœ

https://chromewebstore.google.com/detail/%ED%86%A0%ED%83%90%EC%A0%95/hannhecbnjnnbbafffmogdlnajpcomek?hl=ko

์ž์‹ ์˜ ์ˆ˜์ค€์— ๋งž๊ฒŒ ๋žœ๋ค ๋ฌธ์ œ๋ฅผ ๋ฝ‘์•„์ฃผ๋Š” ํ† ํƒ์ •์ด๋ผ๋Š” ๋ฐฑ์ค€์šฉ ๋ธŒ๋ผ์šฐ์ € ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ์ž…๋‹ˆ๋‹ค.

์‚ฌ์šฉ๋ฒ•:
ํ† ํƒ์ • ์„ค์ •(ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ ์˜ต์…˜) ๋‚ด "์•Œ๊ณ ๋ฆฌ์ฆ˜ ์„ค์ •"์—์„œ ์•„๋Š” ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ๋ชจ๋‘ ์ฒดํฌํ•ด์ค€ ํ›„
"๋ฌธ์ œ ์ถ”์ฒจ ์„ค์ •"์—์„œ ๋‚œ์ด๋„ ๋ฒ”์œ„๋ฅผ ์„ค์ •ํ•ด์ฃผ๋ฉด ๋ฉ๋‹ˆ๋‹ค. (๋‚˜๋จธ์ง€๋Š” ์„ ํƒ ์ž‘์„ฑ)

๊ทธ๋ฆฌ๊ณ  ๋‚˜์„œ ์ถ”์ฒจ ์ƒ์„ฑ์„ ๋ˆ„๋ฅด๋ฉด ์ถ”์ฒจ๋œ ๋ฌธ์ œ๊ฐ€ ๋‚˜์˜ค๋Š” ๊ฒƒ์ด ์•„๋‹Œ ์ถ”์ฒจ, ์ฆ‰ ํ•„ํ„ฐ๊ฐ€ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
๊ทธ ์ƒํƒœ๋กœ ๋ฐฑ์ค€์— ์ ‘์†ํ•˜๋ฉด ์šฐํ•˜๋‹จ์— ํŒŒ๋ž€์ƒ‰ ์› ๋ชจ์–‘ ๋ฒ„ํŠผ์ด ๋‚˜์˜ฌ ๊ฒƒ์ž…๋‹ˆ๋‹ค.
๊ทธ๊ฒƒ์„ ์šฐํด๋ฆญํ•˜๋ฉด 5๊ฐ€์ง€ ์ •๋„ ๊ธฐ๋Šฅ์ด ๋‚˜์˜ฌํ…๋ฐ ์ฃผ์‚ฌ์œ„ ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๋ฉด ํ˜„์žฌ ์„ค์ •๋œ ํ•„ํ„ฐ๋กœ ๋žœ๋ค ๋ฌธ์ œ๊ฐ€ ๊ฑธ๋Ÿฌ์ ธ์„œ ๋‚˜์˜ต๋‹ˆ๋‹ค.
ํ•„ํ„ฐ ๋ฐ”๊พธ๋Š” ๊ฒƒ์ด ๊ท€์ฐฎ๋‹ค๋ฉด ํ•„ํ„ฐ์˜ ์ˆœ์„œ(๋ฒˆ์งธ)๋ฅผ ํ™•์ธํ•œ ํ›„ ๋ฐฑ์ค€ ์‚ฌ์ดํŠธ ๋‚ด์—์„œ Alt+0~9 ๋ฅผ ๋ˆŒ๋Ÿฌ ๊ทธ ํ•„ํ„ฐ๋กœ ๊ฑธ๋Ÿฌ์ง„ ๋ฌธ์ œ๊ฐ€ ๋žœ๋ค์œผ๋กœ ๋‚˜์˜ค๊ฒŒ ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

โ™  ์ฃผ์˜์‚ฌํ•ญ โ™  (ํผ ์˜ด)

  1. BOJ ์„ค์ •์—์„œ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ถ„๋ฅ˜๋ฅผ ๋ฐ˜๋“œ์‹œ "์„ฑ๊ณต์ผ ๊ฒฝ์šฐ๋งŒ ๋ณด๊ธฐ", "์„ฑ๊ณต/๋ถ€๋ถ„ ์„ฑ๊ณต์ผ ๊ฒฝ์šฐ๋งŒ ๋ณด๊ธฐ" ์ค‘ ํ•˜๋‚˜๋กœ ์„ค์ •ํ•ด ์ฃผ์„ธ์š”. ๊ทธ๋ ‡์ง€ ์•Š์„ ๊ฒฝ์šฐ ํ† ํƒ์ •์€ ํ•ด๋‹น ๋ฌธ์ œ๋ฅผ ์ด๋ฏธ ํ’€๋ฆฐ ๋ฌธ์ œ๊ฑฐ๋‚˜ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ถ„๋ฅ˜๊ฐ€ ์—†๋Š” ๋ฌธ์ œ๋กœ ๊ฐ„์ฃผํ•˜๊ณ  ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

  2. ๋งŒ์•ฝ BOJ Extended ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ์„ ์‚ฌ์šฉ ์ค‘์ด๋ฉด์„œ ํ† ํƒ์ • ํ…Œ๋งˆ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์‹ถ์œผ์‹ค ๊ฒฝ์šฐ์—๋Š”, BOJ Extended์˜ ํ…Œ๋งˆ๋ฅผ '๋ฐ์€ ํ…Œ๋งˆ' ๋กœ ์„ค์ •ํ•ด ์ฃผ์„ธ์š”. ํ…Œ๋งˆ๊ฐ€ ์„œ๋กœ ์ถฉ๋Œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ „์šฉ ํ…Œ๋งˆ, ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ณด๊ธฐ ์ž ๊ธˆ๊ณผ ๊ฐ™์€ ๋‚˜๋จธ์ง€ ๊ธฐ๋Šฅ ๋ฐ ์„ค์ • ๋ฐฉ๋ฒ•์€ ๊ณต์‹ ์‚ฌ์ดํŠธ๋ฅผ ์ฐธ๊ณ ํ•ด ์ฃผ์„ธ์š”.
์ดˆ๋ฐ˜ ์„ค์ •์ด ๊ท€์ฐฎ๊ธฐ๋Š” ํ•˜์ง€๋งŒ ํ•œ ๋ฒˆ ์„ค์ •ํ•ด ๋†“์œผ๋ฉด ๋žœ๋ค ๋””ํŽœ์Šค ํ•˜๋Š” ๋ฐ ํŽธํ•˜๋‹ˆ ์ฐธ๊ณ ํ•˜์‹œ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

boj - N๊ณผ M(4)

๋ฐฑํŠธ๋ ˆํ‚น ๊ณต๋ถ€ํ•˜๊ณ  ์žˆ๋Š”๋ฐ ์ œ๊ฐ€ ๋ถ€์กฑํ•ด์„œ ๋ฐœ์ƒ์ด ์•ˆ๋– ์˜ค๋ฅด๋„ค์š”. ๋„์›€ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.
https://www.acmicpc.net/problem/15652

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.