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 | 31 |
Tags
- HackCTF
- misc
- xcz.kr
- 써니나타스
- Database
- Text
- wargame
- 정렬
- 문자열
- N0Named
- 백준
- CTF
- 인코그니토
- SuNiNaTas
- cryptography
- Digital Forensics
- 그리디 알고리즘
- 수학
- 구현
- writeup
- Forensics
- MySQL
- C
- Web
- Incognito
- Web Hacking
- php
- 사칙연산
- Network
- Python
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