전체 글

Programming/Spring | Spring-Boot

[Spring] @RequestMapping

1. RequestMapping url 요쳥(request)를 Controller에 있는 메소드와 맵핑하기 위해 사용하는 어노테이션 1.1 예시 @RequsetMapping이 어떻게 사용되는지 예시로 살펴보자 import org.springframework.web.bind.annotation.RequestMapping; @Controller public class MainController{ @RequestMapping(value="/login", method=RequestMethod.GET) public String login(...) { ... } @RequestMapping(value="/login", method=RequestMethod.POST) public String login2(...) {..

Programming/Spring | Spring-Boot

[Spring] Spring MVC

보호되어 있는 글입니다.

Programming/Spring | Spring-Boot

[Spring] MyBatis 연동

보호되어 있는 글입니다.

Algorithm

[백준] 숫자 카드 2

from sys import stdin from collections import Counter n = stdin.readline().rstrip() card = list(map(int, stdin.readline().split())) m = stdin.readline().rstrip() input_card = list(map(int, stdin.readline().split())) count = Counter(card) for i in input_card: if i in count: print(count[i], end=' ') else: print(0, end=' ')

Algorithm

[프로그래머스] 다리를 지나는 트럭

문제 설명 트럭 여러 대가 강을 가로지르는 일차선 다리를 정해진 순으로 건너려 합니다. 모든 트럭이 다리를 건너려면 최소 몇 초가 걸리는지 알아내야 합니다. 다리에는 트럭이 최대 bridge_length대 올라갈 수 있으며, 다리는 weight 이하까지의 무게를 견딜 수 있습니다. 단, 다리에 완전히 오르지 않은 트럭의 무게는 무시합니다. 예를 들어, 트럭 2대가 올라갈 수 있고 무게를 10kg까지 견디는 다리가 있습니다. 무게가 [7, 4, 5, 6]kg인 트럭이 순서대로 최단 시간 안에 다리를 건너려면 다음과 같이 건너야 합니다. 경과 시간다리를 지난 트럭다리를 건너는 트럭대기 트럭 0 [] [] [7,4,5,6] 1~2 [] [7] [4,5,6] 3 [7] [4] [5,6] 4 [7] [4,5] [..

seandoesdev
To get a Lemonade