04. Digital_Engineering_HW4
[toc] Digital_Engineering_HW4 문제 1. Program in C language to print as follows: - When your program is executed, - it asks a user to input two 5 digit bynary number. ```Please, type the 1st 5-bit...
[toc] Digital_Engineering_HW4 문제 1. Program in C language to print as follows: - When your program is executed, - it asks a user to input two 5 digit bynary number. ```Please, type the 1st 5-bit...
[toc] Digital_Engineering_HW3 문제 1. Program in C language to print as follows: - 메모장에 적힌 4비트 제네레이션 코드를 입력 후 .txt 파일에 적히 10 digit 바이너리 숫자를 읽은 후 CRC를 구하는 코드를 작성하시오 정답 // Homework #3 - CRC 코드 ...
[toc] Digital_Engineering_HW2 문제 1. Program in C language to print as follows: --- What is the level of Quantization? 16 Type the values of 5 sampled points: 0 -1.2 1.5 -4.4 2.5 The level of the...
[toc] Digital_Engineering_HW1 문제 1. Program in C language to print as follows: --- Type the values of 5 sampled points: 0 1.2 1.5 2.3 2.5 Digitized signal after quantization and coding is 100 10...
[toc] 가로수 문제 https://www.acmicpc.net/problem/2485 제출 코드(시간 초과) import sys input = sys.stdin.readline n = int(input()) n_lst = sorted([int(input()) for _ in range(n)]) rst_1 = 0 rst_2...
[toc] 최소공배수 문제 https://www.acmicpc.net/problem/1735 제출 코드 import sys input = sys.stdin.readline def gcd(a, b): while b > 0: a, b = b, a % b return a a, b = map(int...
[toc] 서로 다른 문자열 개수 문제 https://www.acmicpc.net/problem/11478 제출 코드 s = input() s_set = set() for i in range(len(s)): for j in range(i, len(s)): s_set.add(s[i:j+1]) ...
[toc] 숫자2 문제 https://www.acmicpc.net/problem/10816 제출 코드1 import sys input = sys.stdin.readline n = int(input()) n_lst = list(map(str, input().split())) # print(n_lst) m = int(input(...
[toc] 좌표 압축 문제 https://www.acmicpc.net/problem/18870 제출(오답) 코드1 - 시간 초과 import sys def rst_function(a_lst): rst = [] for value in a_lst: if value not in rst: ...
[toc] 수 정렬하기(심화) 문제 https://www.acmicpc.net/problem/10989 제출(오답) 코드1 - 메모리 초과 import sys import heapq n = int(sys.stdin.readline().strip()) min_heap = [] for _ in range(n): n_lst ...