| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 프로그래머스
- 건강
- 이분탐색
- 백준
- 문자열
- 문제풀이
- 문제해결
- 투포인터
- greedy
- COS PRO
- 운동기록
- 알고리즘
- binary search
- priorityqueue
- 러닝일지
- BFS
- db
- SQL
- math
- dfs
- MySQL
- Java
- SWEA
- BOJ
- 자바
- 코테
- oracle
- 시뮬레이션
- 코딩테스트
- DP
- Today
- Total
목록Java (469)
슈콩
[문제]https://www.acmicpc.net/problem/9613 [소스 코드]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 n = Integer.parseInt(st.nextTok..
[문제]https://www.acmicpc.net/problem/9020 [소스 코드]import java.io.*;import java.util.*;public class Main { static boolean[] prime = new boolean[10001]; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); isPrime(); int t = Integer.parseInt(br.readLine()); while(t-->0) { int n = Integer.parseInt(br.readLine()); ..
[문제]https://www.acmicpc.net/problem/6359 [소스 코드]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 t = Integer.parseInt(br.readLine()); while(t-->0) { int n = Integer.parseInt(br.readLine()); boolean[] open = new boolean[n+1]; Arrays.fill(open, ..
[문제]https://www.acmicpc.net/problem/5347 [소스 코드]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()); long a = Long.parseLong(st.nextTok..
범위 주의 ! [문제]https://www.acmicpc.net/problem/4948 [소스 코드]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)); while(true) { int n = Integer.parseInt(br.readLine()); if(n==0) break; if(n==1) { System.out.println(1); continue; } int result = 0;..
[문제]http://xn--amicpc-bhy.net/problem/4796 [소스 코드]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 t = 0; while(true) { t++; StringTokenizer st = new StringTokenizer(br.readLine()); int l = Integer.parseInt(st.nextToken()); int p = Integer.p..
[문제]https://www.acmicpc.net/problem/3343 [소스 코드]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()); long n = Long.parseLong(st.nextToken()); long a = Long.parseLong(st.nextToken()); long b = Long.p..
[문제]https://www.acmicpc.net/problem/3036 [소스 코드]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()); st = new StringTokenizer(br.readLine()); int first = Integer.parseInt(st.nextToken()); for(i..
[문제]https://www.acmicpc.net/problem/2960 [소스 코드]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()) - 1; boolean[] ..
[문제]https://www.acmicpc.net/problem/2869 [소스 코드]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 a = Integer.parseInt(st.nextToken()); int b = Integer.parseInt(st.nextToken()); int v = Intege..