Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- correct = []
- response = []
- correctCount = 0
- answerCount = 0
- checkCount = 0
- x = 0
- while correctCount < n:
- correct.append(str(input()))
- correctCount += 1
- while answerCount < n:
- response.append(str(input()))
- answerCount += 1
- while checkCount < n:
- if response[checkCount] == correct[checkCount]:
- x += 1
- checkCount += 1
- print(x)
Advertisement
Add Comment
Please, Sign In to add comment