본문 바로가기

전체 글851

백준 16194 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main16194 { public static int[] d; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); //카드개수 N개 int[] P = new int[N+1]; //가격 d = new i.. 2021. 8. 23.
백준 11052 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main11052 { public static int[] d; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); //카드개수 N개 int[] P = new int[N+1]; //가격 d = new i.. 2021. 8. 22.
백준 9095 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main9095 { public static int[] D; //메모리 제이션 public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int T =Integer.parseInt(br.readLine()); //테스트 케이스 개수 D = new int[11]; for(int i=0; i 2021. 8. 22.
백준 11727 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main11727 { public static int[] tile; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); tile = new int[n+1]; //메모리제이션 System.out.println(tiling(n)); } //Top-down 방식 (재.. 2021. 8. 21.
백준 11726 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main11726 { public static int[] tile; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); tile = new int[n+1]; //메모리제이션 System.out.println(tiling(n)); } //Top-down 방식 (재.. 2021. 8. 21.
JSP의 에러처리 JSP 에러 처리를 위한 필요 요소 JSP 페이지 수행 중 비정상적 동작 수행으로 인해 페이지 내부에서 에러가 발생했을 때 JSP 페이지 내부에 해당 에러를 처리하기 위한 아무런 조치가 없을 경우 웹 서버에서 에러 관련 사항을 웹 브라우저를 통해 출력하게 된다. 일반 사용자의 경우 기본 에러 관련 화면은 대처하기 어렵기 때문에 상황에 맞는 적절한 대응 안내를 사용자에게 해줄 수 있는 새로운 에러 페이지를 제작하는 것이 바람직하다. 응답 상태 코드 JSP 에러 처리에 핵심적인 요소인 응답 상태 코드는 웹 서버가 요청에 대한 응답을 전송할 때 HTTP 응답 메시지에 포함되는 요소 중 하나로 현재 전송하려는 응답에 대응되는 요청의 처리 결과를 나타내는 코드이다. 즉 웹 클라이언트의 요청이 잘 처리되어 있는지,.. 2021. 8. 21.