# Python3 # 1098 : [기초-종합+배열] 설탕과자 뽑기 # https://codeup.kr/problem.php?id=1098 A, B = map(int, input().split()) result = [[0 for i in range(B)] for j in range(A)] n = int(input()) for i in range(n): l, d, x, y = map(int, input().split()) for j in range(l): if d == 0: #가로막대 result[x-1][y-1+j] = 1 elif d == 1: result[x-1+j][y-1] = 1 for i in range(A): for j in range(B): print(result[i][j], end=' ')..
# Python3 # 1097 : [기초-종합+배열] 바둑알 십자 뒤집기 # https://codeup.kr/problem.php?id=1097 MAX_VALUE = 19 data = [[0 for i in range(MAX_VALUE)] for j in range(MAX_VALUE)] for i in range(MAX_VALUE): temp = list(map(int, input().split())) for j in range(MAX_VALUE): data[i][j] = temp[j] n = int(input()) for i in range(n): x, y = map(int, input().split()) for k in range(MAX_VALUE): if data[x - 1][k] == 1: dat..
//// 2309_SevenDwarfs.cpp// 2309_SevenDwarfs//// Created by Eon on 3/22/19.// Copyright © 2019 Eon. All rights reserved.///* https://www.acmicpc.net/problem/2309 백준 2309번 일곱난쟁이 브루트포스 유형의 문제 모든경우의수를 모두 구하는 문제 이중 for문 안에 for문이 하나더 존재하지만 이for문은 딱 한번만 실행되므로 O(N^2) */#include #include #include using namespace std; void printVectorDatasWithoutTwoIndexes(vector& a_vector, int a, int b) { for (int i=0; i
# https://www.acmicpc.net/problem/14502 import copy n = m = 0 # 지도 리스트의 NxM 크기 virus_list = [] # 바이러스(2) 위치 좌표들 arr = [] # 원본 지도 리스트 max_val = 0 # 안전영역 결과값 dx = [-1, 1, 0, 0] # 상하좌우 dy = [0, 0, -1, 1] # def get_safe_area(copyed): safe = 0 for i in range(n): for j in range(m): if copyed[i][j] == 0: safe += 1 return safe def spread_virus(x, y, copyed): for i in range(4): nx = x + dx[i] ny = y + dy..
https://www.acmicpc.net/problem/10845 C++로 클래스를 사용하여 구현 DataNode 클래스와 Queue 클래스를 구분하여 캡슐화 최적화로 구현. 큐에 들어가는 데이터의 타입이 변하더라도 Queue 클래스는 변할 필요가 없음. 명령어를 받는 것은 모두 메인함수에서 구현됨. (strcmp & strtok) // // main.cpp // Queue // // Created by Eon on 1/12/19. // Copyright © 2019 Eon. All rights reserved. // #include #include using namespace std; class DataNode { private: int number; DataNode* next; public: Dat..
Thread & Synchronization 이번 실습을 통하여 스레드의 이해와 CPU 스케줄링에 대한 이해를 하는데에 목적을 둔다. 리눅스 환경에서 POSIX 스레드를 생성 및 처리하는 프로그램을 구현하여 분산처리의 이해와 스레드 간의 커뮤니케이션 및 Synchronization의 해결을 구현을 진행한다. 그리고 CPU 스케줄링 알고리즘에 따른 실제 연산속도를 비교를 통하여 CPU 알고리즘(FIFO, Round Robin, Other)을 이해할 수 있다. SourceCode 1. 다중 쓰레드로 수행하는 프로그램 작성 Makefile all: gen_file.c gen_thread.c gcc -o gen_file gen_file.c gcc -o gen_thread gen_thread.c -lpthread..
OS (운영체제) “Kernel Compile, kernel Message, System Call, Kernel Module” 리눅스의 대표적인 우분투를 가상머신 환경에서 설치하여 커널을 분석하고 어떤 식으로 작동하는 지 이해하는 데 목적을 둔다. 기본적인 리눅스 코멘드를 사용하여 커널을 직접 컴파일해 보고 커널의 로그 메세지를 분석하고 로그를 생성해 본다. 커널을 통하여 System Call을 어떻게 작동하는 지 원리를 이해하고 System Call을 생성해 보는 것을 목적으로 둔다. ___________________________________________________________________________________________________________________________..
- Total
- Today
- Yesterday
- 모바일 프로그래밍
- 카카오톡
- 알고리즘
- 아키티오
- 슈어
- NAS
- C++
- 코딩
- 백준
- 개발
- CodeUp
- egpu
- 파이썬
- eclipse
- 맥
- 코드업
- se846
- 우분투
- 맥북
- 산업화
- 이클립스
- 외장그래픽
- 자바
- 문제
- python
- 프로그래밍
- 서버
- Java
- 환경오염
- Vega64
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |