[Softeer] [한양대 HCPC 2023] X marks the Spot (Python)
2024. 3. 22. 11:40ㆍ알고리즘
import sys
input = sys.stdin.readline
N = int(input())
answer = []
for _ in range(N):
S, T = map(str, input().split())
for i, s in enumerate(S):
if s == 'x' or s == 'X':
answer.append(T[i].upper())
break
print(''.join(answer))
'알고리즘' 카테고리의 다른 글
[백준] 15685번: 드래곤 커브 (Python3) (0) | 2024.04.26 |
---|---|
[백준] 14503번 : 로봇청소기 (Python3) (0) | 2024.03.19 |
[LeetCode] Keys and Rooms (Python) (0) | 2024.03.09 |
[LeetCods] 01Matrix (Python) (0) | 2024.03.09 |
[LeetCode] Flood Fill (Python) (0) | 2024.03.09 |