일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 티스토리챌린지
- 오블완
- Python
- mssql
- 명령어
- network
- API
- DBMS
- 차이점
- 리눅스
- 자바
- SQL
- 트랜잭션
- PostgreSQL
- group by
- IntelliJ
- JPA
- docker
- mysql
- spring
- MariaDB
- rsync
- top
- MongoDB
- Linux
- java
- oracle
- analytics4
- Javascript
- git
- Today
- Total
목록Study/ALGORITHM (42)
hanker
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true){ int n = sc.nextInt(); if(n == 0){ break; } int cnt = 0; for(int i = n + 1 ; i 1){ for(int j = 2 ; j
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int M = sc.nextInt(); int N = sc.nextInt(); for(int i = M ; i 1){ for(int j = 2 ; j
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for(int i = 2 ; i
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int n = sc.nextInt(); int sum = 0; int min = 0; for(int i = n ; i >= m ; i--){ boolean flag = true; if(i < 2){ flag = false; } for(int j = 2 ; j
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int cnt = 0; for(int i = 0 ; i < n ; i++){ int minor = sc.nextInt(); boolean flag = true; if(minor < 2){ flag = false; } for(int j = 2 ; j
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for(int i = 0 ; i < N ; i++){ int x = sc.nextInt(); int y = sc.nextInt(); int dist = y - x; int max = (int)Math.sqrt(dist); if(max == Math.sqrt(dist)){ System.out.println(max * 2 - 1); } else if (dist
import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigInteger A = sc.nextBigInteger(); BigInteger B = sc.nextBigInteger(); System.out.println(A.add(B)); } }
import java.util.Scanner; public class p2775 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for(int i = 0 ; i < T ; i++){ int k = sc.nextInt(); // 층 int n = sc.nextInt(); // 호 int[][] ar = new int[k+1][n+1]; int cnt = 0; for(int j = 0 ; j
import java.util.Scanner; public class Main { public static void main(String ar[]) throws Exception{ Scanner sc = new Scanner(System.in); int cnt = sc.nextInt(); for(int i = 0 ; i < cnt ; i++){ int hotelFloor = sc.nextInt(); int roomCnt = sc.nextInt(); int customer = sc.nextInt(); if(N % H == 0){ System.out.println((hotelFloor * 100) + (customer / hotelFloor)); } else{ System.out.println((custom..
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); Strin..