목록전체 글 (294)
Muscardinus
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/zOu2Q/btqG6BNmhNS/YAJtCEJDFN56jIRwmkNkzK/img.jpg)
https://www.acmicpc.net/problem/14503 14503번: 로봇 청소기 로봇 청소기가 주어졌을 때, 청소하는 영역의 개수를 구하는 프로그램을 작성하시오. 로봇 청소기가 있는 장소는 N×M 크기의 직사각형으로 나타낼 수 있으며, 1×1크기의 정사각형 칸으로 나누어 www.acmicpc.net #include #include using namespace std; struct Robot { int rx, ry, rd; Robot(int y, int x, int d) { ry = y; rx = x; rd = d; } }; int n, m; int board[51][51]; int result = 0; int dy[] = {-1,0,1,0}; int dx[] = {0,1,0,-1}; int..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/ckjaY7/btqG6fCHpil/0NssPz9BMyPejZf9aOkySK/img.jpg)
https://www.acmicpc.net/problem/14502 14502번: 연구소 인체에 치명적인 바이러스를 연구하던 연구소에서 바이러스가 유출되었다. 다행히 바이러스는 아직 퍼지지 않았고, 바이러스의 확산을 막기 위해서 연구소에 벽을 세우려고 한다. 연구소는 크� www.acmicpc.net #include #include #include #include #include using namespace std; int check[81]; vector Empty; vector Virus; int visit[9][9]; int board[9][9]; int copyBoard[9][9]; int n, m; int answer = 0; int dx[] = { 0,0,1,-1 }; int d..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bmvK0P/btqG9AS6btF/k6PtQL0AcVjssP5nQa0fs1/img.jpg)
https://www.acmicpc.net/problem/14500 14500번: 테트로미노 폴리오미노란 크기가 1×1인 정사각형을 여러 개 이어서 붙인 도형이며, 다음과 같은 조건을 만족해야 한다. 정사각형은 서로 겹치면 안 된다. 도형은 모두 연결되어 있어야 한다. 정사각형의 변� www.acmicpc.net #include using namespace std; int n, m; int map[503][503]; const char block[19][4][5] = { { "1111", "0000", "0000", "0000" }, { "1000", "1000", "1000", "1000" }, { "1100", "1100", "0000", "0000" }, { "1000", "1000", "1100"..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/XVAZJ/btqGZHNEjnV/83y1KapEvocg2Tyvl7kzsK/img.jpg)
before after 하면 inline요소 inline요소는 값을 안 주면 크기가 없다 가운데를 기점으로 퍼지기 .gnb a:before { content: ''; position: absolute; background-color: crimson; height: 1px; width: 1px; bottom: 0; left: 50%; transform: translateX(-50%); transition: .3s; } .gnb a:hover:before { /* left: 0; */ width: 100%; } 글자 사이 간격 주기 hover 할때 letter-spacing: 3px; Checkbox 만들기(글씨 클릭해도 체크 되기) 약관을 충분히 이해했으며 동의 합니다. 더 선호 약관을 충분히 이해했으며 ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/birKYy/btqG4b7Ehz3/yxDlcOnpE1k5KYiJrjymFk/img.jpg)
https://www.acmicpc.net/problem/14499 14499번: 주사위 굴리기 첫째 줄에 지도의 세로 크기 N, 가로 크기 M (1 ≤ N, M ≤ 20), 주사위를 놓은 곳의 좌표 x y(0 ≤ x ≤ N-1, 0 ≤ y ≤ M-1), 그리고 명령의 개수 K (1 ≤ K ≤ 1,000)가 주어진다. 둘째 줄부터 N개의 줄에 지도 www.acmicpc.net #include using namespace std; int n, m, sx, sy, k; int dice[6]; int ndice[6]; int map[20][20]; int dy[] = { 0,0,-1,1 }; //동서북남 int dx[] = { 1,-1,0,0 }; void move_dice(int dir) { switch (..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/Z1KRB/btqGXnIpNpl/LzDrNAPi80gvKOq52RpYyK/img.jpg)
크롬 확장 프로그램 page ruler redux -> layout의 크기값 확인 필요 시 gallerify powerful image -> 지금 다운 안됨 cssViewer -> 대상 css 확인 colorzilla -> 색 추출 mobile rwd tester -> 모바일 nimbus 화면 캡쳐 영상 text-transform: uppercase; scroll animation 주기 a tag의 href에 대상의 id 값 넣기 ex) #part1 #xxxx -> 현재문서의 id가 무엇인 값 # -> 가장 상단으로 가기 Scroll 부드럽게 하기 JQuery 방법 $('선택자').click(function(){ $.scrollTo(this.hash || 0, 900); e.preventDefault()..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/MzyG5/btqGUd6EV0f/VYVdMSCO3zwGhLsyzUhNFK/img.jpg)
https://www.acmicpc.net/problem/13458 13458번: 시험 감독 첫째 줄에 시험장의 개수 N(1 ≤ N ≤ 1,000,000)이 주어진다. 둘째 줄에는 각 시험장에 있는 응시자의 수 Ai (1 ≤ Ai ≤ 1,000,000)가 주어진다. 셋째 줄에는 B와 C가 주어진다. (1 ≤ B, C ≤ 1,000,000) www.acmicpc.net #include using namespace std; int n, b, c; int p[1000001]; int main() { ios_base::sync_with_stdio(false); cin >> n; for (int i = 0; i > p[i]; } cin >> b >> c; long long cnt =..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/3KCsh/btqGVwqWVI5/dfVsNRCVi2hoszvKdG8FkK/img.jpg)
video 영상 넣기 왠만하면 div 안에 video 넣기 속성 :autoplay, muted, loop poster -> 이미지 넣어주는 속성 (비디오 안 나올때 대체 사진) min-width/ min-height 최소 너비 높이 html상 동영상은 맨 위에 있음 z-index: -1로 바꿔줌 위치를 letter-spacing -> 글자마다 간격 주기 animation: showing 2s 1s linear; time delay animation-fill-mode: both; position: absolute 를 주면 inline-block으로 바뀜 inline-block에는 width와 height가 없으므로 내가 줘야한다 animation을 줄때는 같은 속성을 줘야하기 때문에 top이면 top으로 ..