Processing math: 100%
본문 바로가기
728x90

전체 글432

[Error] E: Package 'git' has no installation candidate 때로 서버에서 docker container를 만들고 실행할 때 git에 대한 error가 나기도 합니다.단순하  'apt-get install git' 을 통해 설치를 하려했지만 이는 다음과 같은 에러를 발생시킵니다.이는 ubuntu버전이 이 git 설치를 지원하지 않는 경우라고 하는데 이 때 apt-tupdateapt-tstallgit 다음 업데이트를 통해 해결할 수 있습니다. 2025. 2. 21.
[python] 백준 2641 다각형그리기 https://www.acmicpc.net/problem/2641 문제 해결같다고 판정되는 다각형은 오직 시작점의 차이와 역방향 이동 두개의 차이만 허락된다. CODEimport sysinput = sys.stdin.readlinefrom collections import dequeconvert = lambda x: (x+2)%4 if x!=2 else 4n = int(input())sample = deque(map(int, input().split()))rev_sample = deque(map(convert, sample))rev_sample.reverse()cnt = 0result = list()for _ in range(int(input())): x = deque(map(int,input().sp.. 2025. 1. 27.
GPU Fan ERR! DEMO 코드 돌릴려고 하는데 갑자기 GPU FAN ERROR가 떴다 ㅜㅜGPU Fan ERROR은 보통 온도가 급격히 올라갈 때 생긴다고 한다.  Reboot을 하면 문제를 해결할 수 있다고 해서 편하게 Reboot을 하려고 했다.sudo reboot  하지만 끝나고 나니.... NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. GPU Driver가 로드가 되지 않았다. 문제를 살펴보니 GPU를 끄지않고 reboot을 하면 종종 그렇다고 한다... 인터넷을 통해 문제를 잘 해결할 수 있었다! apt.. 2024. 8. 26.
[python] 백준 2352 반도체 설계 문제 해결가장 길게 오름차순 수열을 만들수 있는 LIS (Longest Increasing Subsequence) 문제원소 하나씩 살펴보면서 가장 최근 이은 값도가 크면 하나 더해주고 작은 값이 나오면 이분탐색 통해 이전 값들에서 하나에 예약 연결한다 생각하고 value값을 바꿔놔도 문제 없다CODEimport sysinput = sys.stdin.readlinefrom bisect import bisect_leftif __name__ == "__main__": n = int(input()) A = list(map(int, input().split())) link = [] for d in A: if not link or link[-1] 2024. 8. 15.
728x90