일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- union_find
- CSS
- map
- Union-find
- BFS
- priority_queue
- javascript
- string
- GC로그수집
- List
- 힙덤프
- dfs
- date
- 큐
- 리소스모니터링
- scanner
- html
- spring boot
- NIO
- Calendar
- alter
- Java
- Properties
- sql
- JPA
- set
- 스프링부트
- deque
- 스택
- math
- Today
- Total
목록분류 전체보기 (309)
매일 조금씩

import java.util.*; import java.util.Map.*; class Solution { public int[] solution(String[] id_list, String[] report, int k) { List answer = new ArrayList(); HashMap reportedList = new HashMap(); HashMap mailed = new HashMap(); // reportedList에 '피신고자=[신고자들]' 넣기 for(String names: report){ String reporter = names.split(" ")[0]; String reported = names.split(" ")[1]; HashSet reporterList = new Hash..

import java.util.*; class Solution { public String solution(String[] survey, int[] choices) { String answer = ""; Map map = new HashMap(); for(int i = 0; i 0 && score 4){ map.put(s[1], map.getOrDefault(s[1], 0) + score - 4); } } answer += map.getOrDefault("R", 0) >= map.getOrDefault("T", 0) ? "R" : "T"; answer += map.g..

class Solution { public String solution(int[] food) { String answer = "0"; for(int i = food.length - 1; i >= 1; i--){ String now = ""; int count = food[i] / 2; for(int j = 0; j < count; j ++){ now += i; } answer = now + answer + now; } return answer; } }

import java.util.*; class Solution { public int solution(int k, int m, int[] score) { int answer = 0; Arrays.sort(score); int[] score2 = Arrays.copyOfRange(score, score.length % m, score.length); //System.out.println(Arrays.toString(score2)); for(int i = 0; i < score2.length;i+=m){ answer += score2[i] * m; //System.out.println(score2[i]); } return answer; } }

class Solution { public int solution(String t, String p) { int answer = 0; Long longp = Long.parseLong(p); int lengthp = p.length(); for(int i = 0; i < t.length()-lengthp+1; i++){ if(Long.parseLong(t.substring(i,i+lengthp))

import java.util.*; import java.lang.Math; class Solution { public int[] solution(String today, String[] terms, String[] privacies) { List answer = new ArrayList(); Map termMap = new HashMap(); int day = getDate(today); for(String term : terms){ String[] t = term.split(" "); termMap.put(t[0], Integer.parseInt(t[1])); } for(int i = 0; i < privacies.length; i++){ String[] p = privacies[i].split(" ..