일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- date
- Union-find
- Java
- spring boot
- math
- GC로그수집
- scanner
- NIO
- 스프링부트
- Properties
- sql
- javascript
- deque
- Calendar
- 힙덤프
- priority_queue
- JPA
- 큐
- BFS
- List
- set
- map
- 스택
- union_find
- html
- alter
- dfs
- 리소스모니터링
- CSS
- string
- Today
- Total
목록분류 전체보기 (301)
매일 조금씩

class Solution { boolean solution(String s) { boolean answer = true; String[] str = s.split(""); int p = 0; int y = 0; for(int i=0; i

import java.util.*; public class Solution { public int solution(int n) { int answer = 0; String m = Integer.toString(n); for(int i = 0; i

import java.util.*; class Solution { public int[] solution(long n) { String[] str = new Long(n).toString().split(""); int length = str.length; int[] answer = new int[length]; for(int i = 0; i < length; i++) { answer[length - 1 - i] = Integer.parseInt(str[i]); } return answer; } }

import java.lang.Math; class Solution { public long solution(long n) { long answer = 0; double result = Math.sqrt(n); if(result % 1 != 0) answer = -1; else answer = ((long)result+1)*((long)result+1); return answer; } }

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..