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 |
Tags
- Database
- HackCTF
- SuNiNaTas
- N0Named
- 백준
- 정렬
- 구현
- Web
- 그리디 알고리즘
- Digital Forensics
- C
- MySQL
- php
- writeup
- Incognito
- Python
- Network
- wargame
- CTF
- 인코그니토
- Text
- misc
- 수학
- xcz.kr
- 써니나타스
- Web Hacking
- 문자열
- 사칙연산
- cryptography
- Forensics
Archives
- Today
- Total
보안을 그리다, 훈이
[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
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))
'Programming > Python & Data Structures' 카테고리의 다른 글
[Baekjoon/Python3] 9325번 얼마? (0) | 2020.12.05 |
---|---|
[Baekjoon/Python3] 9316번 Hello Judge (0) | 2020.12.05 |
[Baekjoon/Python3] 9243번 파일 완전 삭제 (0) | 2020.12.05 |
[Baekjoon/Python3] 9095번 1, 2, 3 더하기 (0) | 2020.12.05 |
[Baekjoon/Python3] 9086번 문자열 (0) | 2020.12.05 |
Comments