Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- UnrealMP
- 언리얼 플러그인
- C++
- 의미와 무의미의 경계에서
- 2단계로킹
- 트랜잭션 관리
- 데이터베이스 배움터
- 셰그먼트트리
- UActor
- hackerank
- OS
- 5639
- 백준
- Security
- 비재귀셰그먼트
- 민겸수
- 1759번
- oracle
- 오손데이터읽기
- FBX
- 언리얼 커스텀 플러그인
- 1253번
- Unreal
- SQL
- Linux
- command not found
- 1967번
- 백준 1253번
- 실습
- objtofbx
Archives
- Today
- Total
fatalite
(파이썬 풀이) XOR String 3 본문
똑같은 로직인데 C++에서는 (답은 똑같이 나오는데도) 안된다.
수정도 딱 3줄만 했는데 ㅜ머지
def strings_xor(s, t):
res = ""
for i in range(len(s)):
if s[i] == t[i]:
res += '0';
else:
res += '1';
return res
s = input()
t = input()
print(strings_xor(s, t))
'코딩 인터뷰 > C++' 카테고리의 다른 글
RGB 거리 - 백준 1149 (0) | 2023.02.05 |
---|---|
Sales by Match (0) | 2023.02.04 |
Subarray Division 2 (0) | 2023.02.03 |
Permuting Two Arrays (0) | 2023.01.26 |
Mars Exploration (0) | 2023.01.18 |