알고리즘/Softeer
[Softeer] Softeer [한양대 HCPC 2023] X marks the Spot 파이썬(Python)
츄르사려고 코딩하는 코집사입니다.1. [Softeer] Softeer [한양대 HCPC 2023] X marks the Spot 파이썬(Python)1) 문제 제목 : [한양대 HCPC 2023] X marks the Spot 2) 문제 출처https://softeer.ai/practice/7703 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai2. 풀이- 문자열에서 x 또는 X를 찾아서 해당 인덱스를 대문자로 출력하면 된다. 3. 소스 코드import sysinput = sys.stdin.readlineN = int(input())for _ in range(N) : S, T = map(str, input().split()) if S.find('x') != -1 ..
2024. 11. 5.
최근댓글