[Link] https://AtCoder.jp/contests/typical90/tasks/typical90_b import java.util.*; import java.io.*; public class Main{ static int n; static StringBuilder sb = new StringBuilder(); public...
AtCoder. 001 Yokan Party(4)
[Link] https://AtCoder.jp/contests/typical90/tasks/typical90_a import java.util.*; import java.io.*; public class Main { public static int[] garr; public static int k, n, l; public stati...
BOJ. Expression of Set (1717)
[Link] https://www.acmicpc.net/problem/1717 import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new Buff...
LeetCode. 39. Combination Sum
[Link] https://leetcode.com/problems/combination-sum/ class Solution { public List<List<Integer>> combinationSum(int[] candidates, int target) { Arrays.sort(candidates)...
BOJ. Move and break wall (2206)
[Link] https://www.acmicpc.net/problem/2206 import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new Buff...
BOJ. Prefix sum (2042)
[Link] https://www.acmicpc.net/problem/2042 import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new Buff...
BOJ. Hide and Seek (1697)
[Link] https://www.acmicpc.net/problem/1697 import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new Buff...
Programmers. Find number of animals with same name
[Link] https://programmers.co.kr/learn/courses/30/lessons/59041 SELECT NAME, COUNT(NAME) AS COUNT FROM ANIMAL_INS WHERE NAME IS NOT NULL GROUP BY NAME HAVING COUNT(*) >= 2 ORDER BY NAME ASC;
Programmers. Bigest Number
[Link] https://programmers.co.kr/learn/courses/30/lessons/42746 #include <string> #include <vector> #include <algorithm> using namespace std; bool compare(int a, int b) { ...
LeetCode. 38. Count and Say
[Link] https://leetcode.com/problems/count-and-say/ class Solution { public String countAndSay(int n) { StringBuilder sb = new StringBuilder(); sb.append(1); rec(sb...