| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- SWEA
- math
- 알고리즘
- 건강
- COS PRO
- priorityqueue
- 코테
- 자바
- oracle
- 백준
- 투포인터
- 운동기록
- SQL
- Java
- 이분탐색
- DP
- 코딩테스트
- binary search
- dfs
- 프로그래머스
- BFS
- greedy
- 문제해결
- 문자열
- db
- 문제풀이
- BOJ
- MySQL
- 시뮬레이션
- 러닝일지
- Today
- Total
목록Java (469)
슈콩
[문제]https://www.acmicpc.net/problem/10250 [소스 코드]import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int T = Integer.parseInt(br.readLine()); while(T-->0) { st = new StringTokenizer(br.readLine()); int h = Inte..
[문제]https://www.acmicpc.net/problem/1019 [소스 코드]import java.io.*;import java.util.*;public class Main { static int cnt =1; static int[] num; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); num = new int[10]; int start = 1; int end = n; while(s..
[문제]https://www.acmicpc.net/problem/1011 [소스 코드]import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int n = Integer.parseInt(br.readLine()); while(n-->0) { st = new StringTokenizer(br.readLine()); int x = Integ..
[문제]https://www.acmicpc.net/problem/11051 [소스 코드]import java.io.*;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 k = Integer.parseInt(st.nextToken())..
[문제]https://www.acmicpc.net/problem/6064 [소스 코드]import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int t = Integer.parseInt(br.readLine()); point: while(t-->0) { st = new StringTokenizer(br.readLine()); in..
약수를 찾는 과정: sqrt(제곱근)만큼만 수를 비교하면 된다 ! [문제]https://www.acmicpc.net/problem/11653 [소스 코드]import java.io.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); for(int i=2;i*i
[문제]https://www.acmicpc.net/problem/8980 [소스 코드]import java.io.*;import java.util.*;public class Main { static class Deliver{ int from,to,box; Deliver(int from,int to,int box){ this.from = from; this.to = to; this.box = box; } } public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenize..
[문제]https://www.acmicpc.net/problem/7570 [소스 코드]import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int n = Integer.parseInt(br.readLine()); int[] dp = new int[n+1]; st = new StringTokenizer(br.readLine()); int m..
[문제]https://www.acmicpc.net/problem/2847 [소스 코드]import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] level = new int[n]; for(int i=0;i0;i--) { if(level[i-1] >= level[i]) { int diff = ..
[문제]https://www.acmicpc.net/problem/2457 [소스 코드]import java.io.*;import java.util.*;public class Main { static class Flower{ int s,l; Flower(int s,int l){ this.s = s; this.l = l; } } public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); i..