전체 글
-
네트워크란TIL(today i learned)/네트워크 2023. 3. 7. 17:37
컴퓨터 네트워크는 서로 연결하기를 원하는 시스템들의 집합체이다. 그러기위해서는 각 호스트별로 통일화된 연결방식이 필요한데 그래서생겨난것이 국제표준화단체(ISO)에서 제시한 OSI 7 Layer 이다. system=host DHCP=자동 IP할당 지금부터는 각각의약어에 대해서 선입견없이 보아야된다.(내가생각한 뜼이랑 다를수있기 때문 머리를비우고 외우자) 네트워크:하드웨어적인 전송매체를통해 서로연결되어 데이터를 공유하는시스템의 집합 인터페이스:시스템과 전송매체의 연결 지점에 대한 규격[네트워크 인터페이스는 두 가지 네트워크 장비 또는 프로토콜 계층이 연결되는 지점. 일반적으로 컴퓨터와 개인 또는 공용 네트워크 간의 연결을 위해 실제 NIC(네트워크 인터페이스 카드)로 표시된다. 그러나 소프트웨어 전용 구성 ..
-
레지스터와 버퍼TIL(today i learned)/운영체제 2023. 3. 6. 23:51
레지스터:CPU의 연산을 위한임시저장소. 우리가흔히말하는 32비트64비트 컴퓨터는 명령을 한번에 처리할수있는 레지스터의 비트의수이다. 버퍼:버퍼라는 것은 속도차가 큰 두 대상이 입출력을 수행할 때 효율성을 위해 사용하는 임시 저장공간. 참고:http://itnovice1.blogspot.com/2019/08/blog-post_99.html [운영체제] 레지스터란? [운영체제] 레지스터란? 레지스터(Register)의 이해 레지스터는 CPU(Central Processing Unit)가 요청을 처리하는 데 필요한 데이터를 일시적으로 저장하는 기억장치이다 . 실제로 컴퓨터에서 데이터를 영 itnovice1.blogspot.com https://dololak.tistory.com/84 [개념정리] 버퍼(Buf..
-
운영체제란TIL(today i learned)/운영체제 2023. 3. 6. 22:13
운영체제의 여러가지특징 1.하드웨어 제어 2.응용 프로그램의 기반을 제공하며 컴퓨터 사용자와 컴퓨터 하드웨어 간의 중개자 역할 3.차,사물인터넷,스마트폰,테블릿 pc등 여러곳에 존재한다. 컴퓨터시스템은 크게 4가지요소로 나눌수있는데 첫번째는 하드웨어:컴퓨팅자원(EX)연산,저장,등등)을 제공한다(EX)CPU,Keyboard,등등) 두번째는 응용소프트웨어:하드웨어의 리소스를 소비하여 사용자의 문제를 해결해준다. 세번째는 운영체제:하드웨어를 제어하고 다양한 애플리케이션과 사용자 간의 하드웨어 사용을 조정한다. 마지막은 사용자:사용자 컴퓨터에 관한 사용자의 관점 컴퓨터에 대한 사용자의 관점은 사용 중인 인터페이스에 따라 다르다. PC유저의 관점에서는 사용자의 작업을 최대로하는데 그목적이있고 운영체제또한 그에맞게..
-
-
BaekJoon[8980]TIL(today i learned) 2023. 2. 20. 16:23
Tip1:배열을 데이터에맞춰서 1칸 추가 Tip2:for range는 마지막 접근 X Tip3:제약조건을 배열에저장 import sys input=sys.stdin.readline N,C=map(int,input().split()) H=int(input()) M=[list(map(int,input().split())) for _ in range(H)] M.sort(key=lambda x:x[1]) Box=[C]*(N+1) answer=0 for s,e,b in M: _min=C for i in range(s,e): _min=min(_min,Box[i]) _min=min(_min,b) for i in range(s,e): Box[i]-=_min answer+=_min print(answer)
-
BaekJoon[1462]코딩/백준 그리디 문제 2023. 2. 18. 23:16
import sys input=sys.stdin.readline _,M=map(int,input().split()) L=sorted(list(map(int,input().split()))) Plus=[] Minus=[] target=[] for i in L: if i 0: target.append(Minus[(len(Minus) // M) * M]) for i in range(0, len(Plus) // M): target.append(Plus[i * M]) if len(Plus) % M > 0: target.append(Plus[(len(Plus) // M) * M]) target=sorted(target) print(sum(2*target[:-1])+target[-1])