일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Linux
- mssql
- java
- docker
- Javascript
- analytics4
- 호이스팅
- oracle
- pandas
- git
- zset
- datagrip
- 티스토리챌린지
- github
- Python
- iBatis
- PostgreSQL
- 리눅스
- 오블완
- DBMS
- mysql
- SQL
- 명령어
- error
- spring
- MariaDB
- isNotEmpty
- IntelliJ
- Kibana
- 자바
- Today
- Total
목록Study (45)
hanker
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..

퀄리티는 문제가 있지만 web Server - File Server 로 파일 다운로드 / 업로드 기능을 만들어 봤다. Web Server는 spring boot에서 제공하는 톰캣을 사용했고, File Server는 Virtual box를 이용해 ubuntu 서버를 하나 만들었다. 리스트 화면에서는 파일서버 내 파일들을 불러와서 보여준다. 위에보이는 리스트 / 업로드 버튼을 통해 다운로드 / 업로드 창이 바뀌고 파일을 Drag & Drop으로 File Server에 파일을 업로드할 수 있다. 생각보다 각각의 기능보다 서버에서 셋팅하는게 시간을 많이 잡아먹었다.
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int a = 1; int b = 1; int tmp = 1; for(int i = 1 ; i

hkVirus - 코로나19 최근 7일간 확진자 수 ( 전국 / 시도 ) 공공데이터 포털에서 코로나19 API를 이용해서 간단하게 전국, 지역별 그래프를 만들어 봤다. 최근 7일간 전국 확진자 수, 지역별 확진자 수를 SBAdmin2 템플릿 ,highChart 그래프를 이용해 구현해 봤다. 전국, 지역 버튼을 눌러 확인 가능하다.
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int tmp = 0; int cnt = 1; for(int i = 0 ; i < N ; i++) { tmp += i; if(N = (6 * (tmp - i)) + 2) { cnt = i + 1; break; } } System.out.println(cnt); } }
import java.util.Scanner; public class Main { public static void main(String ar[]) throws Exception{ Scanner sc = new Scanner(System.in); // 고정비용 int A = sc.nextInt(); // 가변비용 (한 개당 비용) int B = sc.nextInt(); // 판매 가 int C = sc.nextInt(); int cnt = 1; // A + (B * ?) = C) { cnt = -1; } else { while(true) { if(A < (C - B) * cnt) { break; } else { cnt++; } } } System...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int count = 0; char[] chr = new char[(int)'z' + 1]; for(int i = 0 ; i < N ; i++) { for(int j = 0 ; j < chr.length ; j++) { //초기화 chr[j] = 'o'; } boolean flag = true; String str = sc.next(); for(int j = 0 ; j < str.length() ; j++) { if(chr[(int)str.char..
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); int sum = 0; for(int i = 0 ; i < str.length(); i++) { char chr = str.charAt(i); if(chr == 'c') { if(i+1 < str.length()) { if(str.charAt(i+1) == '=' || str.charAt(i+1) == '-') { sum++; i++; }else { sum++; } } else { sum++; } } else if(chr == 'd') ..
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); int sum = 0; for(int i = 0 ; i < str.length(); i++) { char chr = str.charAt(i); if((int)chr
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); String strA = String.valueOf(a); String strB = String.valueOf(b); String tmpA = new StringBuffer(strA).reverse().toString(); String tmpB = new StringBuffer(strB).reverse().toString(); a = Integer.parseInt(tmpA); b = Integer.parseI..