From 31569ee733c36f1ad7a1d727aa1d7a8b7b91e84a Mon Sep 17 00:00:00 2001 From: yeong Date: Wed, 5 Feb 2025 22:22:17 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=98=81:=20[SQL]=20Fron?= =?UTF-8?q?t=20end=20=20=EA=B0=9C=EB=B0=9C=EC=9E=90=20=EC=B0=BE=EA=B8=B0?= =?UTF-8?q?=5F250205?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\353\260\234\354\236\220_\354\260\276\352\270\260.sql" | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 "SQL/21\354\243\274\354\260\250/JY_FrontEnd_\352\260\234\353\260\234\354\236\220_\354\260\276\352\270\260.sql" diff --git "a/SQL/21\354\243\274\354\260\250/JY_FrontEnd_\352\260\234\353\260\234\354\236\220_\354\260\276\352\270\260.sql" "b/SQL/21\354\243\274\354\260\250/JY_FrontEnd_\352\260\234\353\260\234\354\236\220_\354\260\276\352\270\260.sql" new file mode 100644 index 00000000..6c27dde4 --- /dev/null +++ "b/SQL/21\354\243\274\354\260\250/JY_FrontEnd_\352\260\234\353\260\234\354\236\220_\354\260\276\352\270\260.sql" @@ -0,0 +1,8 @@ +-- https://school.programmers.co.kr/learn/courses/30/lessons/276035 +-- FrontEnd 개발자 찾기 +SELECT DISTINCT A.ID, A.EMAIL, A.FIRST_NAME, A.LAST_NAME +FROM DEVELOPERS A +JOIN SKILLCODES B +ON A.SKILL_CODE & B.CODE = B.CODE +WHERE CATEGORY = "Front End" +ORDER BY A.ID \ No newline at end of file From 8270dd6a3b557f6e2bbd6468bc811e3e6578d9d7 Mon Sep 17 00:00:00 2001 From: yeong Date: Sun, 9 Feb 2025 10:46:53 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=98=81:=20[BOJ]=202504?= =?UTF-8?q?=20=EA=B4=84=ED=98=B8=EC=9D=98=20=EA=B0=92=5F250208?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "BOJ/1000-5000\353\262\210/JY_2504.java" | 51 ++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 "BOJ/1000-5000\353\262\210/JY_2504.java" diff --git "a/BOJ/1000-5000\353\262\210/JY_2504.java" "b/BOJ/1000-5000\353\262\210/JY_2504.java" new file mode 100644 index 00000000..7faad233 --- /dev/null +++ "b/BOJ/1000-5000\353\262\210/JY_2504.java" @@ -0,0 +1,51 @@ +import java.io.*; +import java.util.*; +public class JY_2504 { + + public static void main(String[] args) throws IOException { + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + + String line = br.readLine(); + + Stack stack = new Stack<>(); + + int ans = 0; + int tmp = 1; + for(int i=0; i Date: Sun, 9 Feb 2025 11:31:05 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=98=81:=20[BOJ]=202170?= =?UTF-8?q?=20=EC=84=A0=20=EA=B8=8B=EA=B8=B0=5F250208?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "BOJ/1000-5000\353\262\210/JY_2170.java" | 66 ++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 "BOJ/1000-5000\353\262\210/JY_2170.java" diff --git "a/BOJ/1000-5000\353\262\210/JY_2170.java" "b/BOJ/1000-5000\353\262\210/JY_2170.java" new file mode 100644 index 00000000..c6cc4d10 --- /dev/null +++ "b/BOJ/1000-5000\353\262\210/JY_2170.java" @@ -0,0 +1,66 @@ +import java.io.*; +import java.util.*; +public class JY_2170 { + + static class Pos implements Comparable { + int x, y; + + public Pos(int x, int y) { + super(); + this.x = x; + this.y = y; + } + @Override + public int compareTo(Pos other) { + return this.x - other.x; + } + + @Override + public String toString() { + return "Pos [x=" + x + ", y=" + y + "]"; + } + + } + + 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()); + + List pList = new ArrayList<>(); + for(int i=0; i end 갱신 + if(e >= now.x) { + e = Math.max(e, now.y); + } + // 겹치지 않는 경우 + else { + // 기존것 더해주고 새로 업데이트 + ans += (e - s); + s = now.x; + e = now.y; + } + } + ans += (e - s); + System.out.println(ans); + + } + +}