Skip to content

Commit 5c4f16f

Browse files
committed
[D2] Title: [파이썬 S/W 문제해결 구현] 1일차 - 이진수, Time: 57 ms, Memory: 49,664 KB -BaekjoonHub
1 parent 89a1805 commit 5c4f16f

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# [D2] [파이썬 S/W 문제해결 구현] 1일차 - 이진수 - 5185
2+
3+
[문제 링크](https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWTtiyIqd_wDFAVT)
4+
5+
### 성능 요약
6+
7+
메모리: 49,664 KB, 시간: 57 ms, 코드길이: 247 Bytes
8+
9+
### 제출 일자
10+
11+
2025-04-27 15:06
12+
13+
14+
15+
> 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
T = int(input())
2+
for i in range(1, T+1):
3+
N, nums = input().split()
4+
N = int(N)
5+
binary = bin(int(nums, 16))[2:] # 2진수 변환 (앞에 '0b' 제거)
6+
binary = binary.zfill(N * 4) # (N * 4)자리수로 0 채워주기
7+
print(f"#{i} {binary}")

0 commit comments

Comments
 (0)