보안을 그리다, 훈이

[Baekjoon/Python3] 9296번 Grading Exams 본문

Programming/Python & Data Structures

[Baekjoon/Python3] 9296번 Grading Exams

HooNeee 2020. 12. 5. 22:10

[Baekjoon/Python3] 9296번 Grading Exams

 

www.acmicpc.net/problem/9296

 

9296번: Grading Exams

The first line of input is the number of test cases that follow. Each test case starts with an integer L (0 < L ≤ 100) representing the number of questions on the exam. The next line contains the answer key, where each question is represented by a single

www.acmicpc.net

 

t = int(input())
for i in range(t):
    l = int(input())
    q = input()
    a = input()
    cnt = 0
    for j in range(l):
        if q[j] != a[j]:
            cnt += 1
    print('Case {}: {}'.format(i + 1, cnt))
Comments