//Exam : Array R of N integers and integer G are given. At this time, get all numbers smaller than integer G in array R. //Input : All given integers are integers greater than or equal to 1, less than or equal to 10000.
Output: The number smaller than G is divided into spaces in the order in which they are entered. At least one number exists that is smaller than the integer G.
KNG) 백준알고리즘 10871 Java 풀이 해석
//문제 : 정수 N개로 이루어진 배열 R과 G가 주어진다. 이 때, 배열 R에서 정수 G보다 작은 수를 모두 구하라. //입력 : 첫째 줄에 N과 G가 주어진다. 둘째 줄에 배열 R을 이루는 정수 N개가 주어진다. //주어지는 정수는 모두 1보다 크거나 같고, 10000보다 작거나 같은 정수이다. //출력 : G보다 작은 수를 입력받은 순서대로 공백으로 구분해 출력한다. 정수 G보다 작은 수는 적어도 하나는 존재한다.
Input - BufferedReader
public class upperthanx {
public static void main(String[]args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String st1 = br.readLine(); //Number of Array R, Integer G
String st2 = br.readLine(); //Elements of Array R
int intG = Integer.parseInt(st1.split(" ")[1]); //Integer G
int arrLimit = Integer.parseInt(st1.split(" ")[0]); //Define Number of Array R
String[] arrR = st2.split(" ");
String result = "";
for(int y=0; y<arrR.length; y++) {
int j = Integer.parseInt(arrR[y]);
if(j <= intG) {
result += " "+arrR[y];
}
}
System.out.println(result.trim());
}
}
schema_reference.4: Failed to read schema document 'https://maven.apache.org/xsd/maven-4.0.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
3시간동안 에러 해결하려고 구글링했는데
jre경로를 jdk로 변경해도 해결되지 않던게 pom.xml 에서 메이븐 plugin 소스
CREATE TABLE TB_MENU (
MENU_NUM INT(11) NOT NULL,
MENU_NAME VARCHAR(20) NOT NULL,
MENU_IMAGE VARCHAR(50) NOT NULL,
MENU_PRICE VARCHAR(29) NOT NULL,
MENU_CATEGORY VARCHAR(20) NOT NULL,
MENU_CALORIE INT(30) NOT NULL,
MENU_MATERIALS VARCHAR(50) NOT NULL,
CR_DT DATE,
UP_DT DATE
);
TB_BRAND : 브랜드 소개 및 정보를 저장하는 테이블(게시판 형식)
CREATE TABLE TB_BRAND (
BRAND_NUM INT(11) NOT NULL,
BRAND_CREATOR VARCHAR(20) NOT NULL,
BRAND_CONTENT VARCHAR(70) NOT NULL,
BRAND_IMAGE VARCHAR(40) NOT NULL,
BRAND_CATEGORY VARCHAR(20) NOT NULL,
CR_DT DATE,
UP_DT DATE
);
TB_STORE : 매장 위치 및 정보를 저장하는 테이블
CREATE TABLE TB_STORE (
STORE_NUM INT(11) NOT NULL,
STORE_SIDO VARCHAR(20) NOT NULL,
STORE_NAME VARCHAR(30) NOT NULL,
STORE_POST_NUM VARCHAR(10) NOT NULL,
STORE_ADDR1 VARCHAR(30) NOT NULL,
STORE_ADDR2 VARCHAR(30) NOT NULL,
STORE_CALL VARCHAR(30) NOT NULL,
CR_DT DATE,
UP_DT DATE
);
TB_MEMBER : 회원정보를 저장하는 테이블
CREATE TABLE TB_MEMBER (
MEMBER_NUM INT(11) NOT NULL,
MEMEBR_NAME VARCHAR(20) NOT NULL,
MEMEBR_ID VARCHAR(20) NOT NULL,
MEMEBR_PW VARCHAR(29) NOT NULL,
CR_DT DATE,
UP_DT DATE
);
TB_QNA : 문의사항 게시판 테이블(가맹문의 등)(게시판 형식)
CREATE TABLE TB_QNA (
QNA_NUM INT(11) NOT NULL,
QNA_TITLE VARCHAR(20) NOT NULL,
QNA_CONTENT VARCHAR(50) NOT NULL,
QNA_CREATOR VARCHAR(20) NOT NULL,
QNA_CATEGORY VARCHAR(20) NOT NULL,
CR_DT DATE,
UP_DT DATE
);