분류 전체보기132 백준 1012번 : 유기농 배추 문제 링크 : acmicpc.net/problem/1012 내 풀이(2021. 1. 2.) : #include using namespace std; bool exist[50][50]; bool visit[50][50]; int counts = 0; int X, Y, K; void search(int y, int x, bool first) { if (y == -1 || x == -1 || y == Y || x == X) return; if (exist[y][x] == false) return; if (visit[y][x] == true) { return; } else { if (first == true) { counts++; first = false; } } visit[y][x] = true; search.. 2021. 1. 2. JSP/서블릿 기초 1. html 소스 (html 문법) 서블릿으로 변환시 _jspService() 메서드 내부에, 한 줄 단위로 out.write("소스"); 삽입 2. Scriptlet(스크립트릿) : (java 문법) 서블릿으로 변환시 _jspService() 메서드 내부에, 연산식을 그대로 삽입. 3. Expression(표현식) : (java 문법) 서블릿으로 변환시 _jspService() 메서드 내부에, out.print("변수"); 삽입 4. Declaration(선언문) : (java 문법) 서블릿으로 변환시 _jspService() 메서드 내부가 아닌 외부에 필드나 메서드로 변환될 코드 jspInit()이나 jspDestroy() 등을 오버라이딩 가능 * _jspService()는 페이지를 새로고침할 때마.. 2021. 1. 1. IT 업계의 종류 보호되어 있는 글 입니다. 2021. 1. 1. 백준 1475번 : 방 번호 문제 링크 : www.acmicpc.net/problem/1475 내 풀이(2021.1.1.) : #include using namespace std; int n[10]; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string N; cin >> N; for (int i = 0; i < N.size(); i++) { if (N[i] == '6' || N[i] == '9') { n[6]++; n[9]++; } else { n[N[i] - '0']++; } } /* for (int i = 0; i < 10; i++) { cout 2021. 1. 1. 이전 1 ··· 27 28 29 30 31 32 33 다음