백준 단계별로 풀기 4단계 if문 사용해보기 - 평균은 넘겠지 (4344 문제) Python 2 답안 백준 단계별로 풀기 4단계 test_case = int(input())i = 0result_list = list() while i (total_score/student_cnt): avg_cnt += 1 result_list.append("%.3f" % float((float(.. Algorithm/Baekjoon 2019.01.16
백준 단계별로 풀기 4단계 if문 사용해보기 - X보다 작은 수(10871 문제) Python 2 답안 a_b = raw_input()a, b = a_b.split(" ") A_str = raw_input()A_list = A_str.split(" ") result = ""for A in A_list: if int(b) > int(A): result = result + A + " "print result Algorithm/Baekjoon 2019.01.14
백준 단계별로 풀기 4단계 if문 사용해보기 - 세수(10817 문제) C언어 답안 #include int main(void) { int a = 0; int b = 0; int c = 0; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); if ((a c) { printf("%d", b); } else { printf("%d", c); } } else { printf("%d", a); } return 0;} Algorithm/Baekjoon 2019.01.14
백준 단계별로 풀기 4단계 if문 사용해보기 - 시험성적(9498번 문제) C언어 답안 #include int main(void) { int answer = 0; scanf("%d", &answer); if ((answer >= 90) && (answer Algorithm/Baekjoon 2019.01.14
(Angular5) 시작하기 * Angular는 Node 환경이기 때문에 Node가 필수적으로 설치되어 있어야 합니다.Angular requires Node.js version 8.x or 10.x. 1. Angular client 설치 npm install -g @angular/cli 2. Workspace와 초기 Application 생성하기 ng new [만들고 싶은 프로젝트 이름] ● 명령어- ng serve : Angular 내 자체 개발 서버를 띄우는 명령어- ng eject : Webpack config 추출 명령어 -> webpack.config.js 생성- ng build : Server에 삽입할 수 있도록 Angular source를 build -> bundle 소스 생성- ng generate [component.. Programming/JavaScript & TypeScript 2018.12.03
(Linux) vim 문자열 치환 문서 내 모든 "aaa"를 "bbb"로 변경 :%s/aaa/bbb/g - 출처 : http://mwultong.blogspot.com/2006/09/vim-vi-gvim-find-and-replace.html Linux 2018.11.21
(Linux) /usr 용량 줄이기 오래된 커널 버전이나 부트 메뉴를 지우거나 부득이하게 /usr 용량을 줄여야한다면 sudo apt autoremove Programming 2018.11.08
(Linux) 현재 디렉토리 내 모든 파일 세기 명령어 $ ls -l | grep ^- | wc -l현재 디렉토리 내 모든 파일만 세기 $ ls -Rl | grep ^- | wc -l하위 디렉토리 포함 모든 파일만 세기 Programming 2018.11.08
(Sqlite3)select between dates SELECT * FROM test WHERE date BETWEEN "2018-11-08" AND "2018-11-09";date type에 맞게 "" 묶어주기 Programming 2018.11.08
(Linux) 실시간으로 파일 끝 출력 tail -f (파일 이름) 하게 되면 해당 파일의 마지막 라인부터 10줄까지 실시간으로 계속 출력해줍니다. Programming 2018.11.06