| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 자바
- 문제해결
- DP
- 문자열
- 투포인터
- db
- binary search
- oracle
- 시뮬레이션
- 코테
- priorityqueue
- BOJ
- greedy
- 알고리즘
- 코딩테스트
- Java
- 건강
- 프로그래머스
- 백준
- 문제풀이
- 러닝일지
- 이분탐색
- 운동기록
- BFS
- MySQL
- SWEA
- dfs
- SQL
- COS PRO
- math
- Today
- Total
목록Java (469)
슈콩
[문제]https://www.acmicpc.net/problem/17103 [소스 코드]import java.io.*;import java.util.*;public class Main { static List list = new ArrayList(); static boolean[] prime = new boolean[1000001]; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine()); isPrime(); whil..
[문제]https://www.acmicpc.net/problem/1676 [소스 코드]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 result = 0; while(n>0) { result += n/5; n /= 5; } System.out.println(result);..
자료형 실수 X[문제]https://www.acmicpc.net/problem/15894 [소스 코드]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)); long n = Integer.parseInt(br.readLine()); long result = n*4; System.out.println(result); }}
[문제]https://www.acmicpc.net/problem/1476 [소스 코드]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 E = Integer.parseInt(st.nextToken()); int S = Integer.parseInt(st.nextToken());..
[문제]https://www.acmicpc.net/problem/1456 [소스 코드]import java.io.*;import java.util.*;public class Main { static List list = new ArrayList(); public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); long a = Long.parseLong(st.nextToken()); long b..
[문제]https://www.acmicpc.net/problem/1292 [소스 코드]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());..
[문제]https://www.acmicpc.net/problem/1256 [소스 코드]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 m = Integer.parseInt(st.nextToken());..
[문제]https://www.acmicpc.net/problem/1193 [소스 코드]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 i = 1; while(n>i) { n -= i; i++; } int a = n; int b = i+1 - n; if(i%..
[문제]https://www.acmicpc.net/problem/10610 [소스 코드]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)); List list = new ArrayList(); String nums = br.readLine(); int l = nums.length(); int sum = 0; for(int i=0;i{ return b - a; ..
[문제]https://www.acmicpc.net/problem/1038 [소스 코드]import java.io.*;import java.util.*;public class Main { static List list = new ArrayList(); public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); if(n=1023) System.out.println(-1); else { for(int i=0;i10)..