일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- SQL
- the midnight library
- English
- 알고리즘 문제
- 코테
- 삼성
- 직무면접
- MySQL
- 코테 대비
- D4
- 원서
- 원서읽자
- sw expert academy
- 코테 준비
- 알고리즘
- STUDYENGLISH
- swexpertacademy
- sw expert
- 원서읽기
- nightroutine
- BFS
- 백준
- 코딩테스트
- 쉬운 알고리즘 문제
- PyQt
- 완전탐색
- englishbook
- readingbook
- 프로그래머스
- dfs
- Today
- Total
목록코딩테스트 (25)
시나브로
Q. 가장 최근에 들어온 동물은 언제 들어왔는지 조회하는 SQL 문을 작성해주세요. A. SELECT MAX(DATETIME) from ANIMAL_INS MAX를 이용하면 가장 최댓값 하나만 조회가 가능하다. SELECT DATETIME from ANIMAL_INS order by DATETIME desc limit 1 MAX를 이용해서 SELECT 문을 구성해도 되지만, 나는 DATETIME으로 정렬하고 맨위의 값 하나를 가지고 왔다.
#include int start_x = 0; int start_y = 0; int end_x = 0; int end_y = 0; int virtual_reality(int signal,int amount,int x, int y) { if (x == end_x&&end_y == y) return amount; if (signal == 0) { if (x > end_x) return virtual_reality(1, amount + 1, x - 1, y); else return virtual_reality(1, amount + 1, x + 1, y); } else { if (y > end_y) return virtual_reality(0, amount + 1, x, y-1); else return virt..
#include int main() { int test_case = 0; scanf("%d", &test_case); char buffer = 0; scanf("%c", &buffer); for (int q = 0; q < test_case; q++) { int present_hours = 0; int present_min = 0; int present_second = 0; int future_hours = 0; int future_min = 0; int future_second = 0; int remain_hours = 0; int remain_second = 0; int remain_min = 0; scanf("%d:%d:%d",&present_hours,&present_min,&present_sec..
#include int main() { int test_case = 0; scanf("%d", &test_case); char buffer = 0; scanf("%c", &buffer); for (int q = 0; q < test_case; q++) { int test_amount = 0; scanf("%d", &test_amount); int box = 0; int m[200002] = { 0 }; int memory_point = 0; for (int i = 0; i < test_amount; i++) { scanf("%d", &box); if (m[box-1] == 1) { m[box] = 1; } else { m[box] = 1; memory_point++; } } printf("#%d %d\n..