#K6111. Trivia Quiz Answer Checker
Trivia Quiz Answer Checker
Trivia Quiz Answer Checker
In this problem, you are to implement a simple trivia quiz checker. For each test case, you are given a trivia question along with four possible answers. Additionally, you are provided with two answer keys: one indicates the correct answer and the other is the answer provided by the contestant. Your task is to compare these two and output "Correct" if they match, and "Incorrect" otherwise.
The answer keys are single characters that can be one of (A), (B), (C), or (D). Use (\LaTeX) formatting for any formulas if necessary.
inputFormat
The input begins with an integer (T) denoting the number of test cases. Each test case consists of 7 lines:
1. A string representing the trivia question.
2. A string for option A.
3. A string for option B.
4. A string for option C.
5. A string for option D.
6. A single character representing the correct answer (A, B, C, or D).
7. A single character representing the answer provided by the contestant.
outputFormat
For each test case, output a single line containing either "Correct" if the provided answer matches the correct answer, or "Incorrect" otherwise.## sample
1
What is the capital of France?
Paris
London
Berlin
Madrid
A
A
Correct