From bff62aa11be261206fae2a5070a9d4c51486e2ef Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Wed, 25 Feb 2026 21:12:46 +0900 Subject: [PATCH] baekjoon 20260225 --- code_study/Baekjoon/python/3449.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 code_study/Baekjoon/python/3449.py diff --git a/code_study/Baekjoon/python/3449.py b/code_study/Baekjoon/python/3449.py new file mode 100644 index 0000000..b4e6866 --- /dev/null +++ b/code_study/Baekjoon/python/3449.py @@ -0,0 +1,12 @@ +import sys +input = sys.stdin.readline + +ans = [] +for _ in range(int(input())) : + dist = 0 + for a, b in zip(input().rstrip(), input().rstrip()) : + dist += (abs(int(a) - int(b))) + ans.append(dist) + +for i in ans : + print(f'Hamming distance is {i}.')