#C7574. Subject Code Validator
Subject Code Validator
Subject Code Validator
This problem requires you to verify if a book belongs to the correct subject collection. You are given a book's identifier, its title, the subject code assigned to it, and the expected subject code for the title. Your task is to check whether the provided subject code matches the expected subject code.
In mathematical terms, you need to verify if $$subject\_code = expected\_subject\_code$$. If they are equal, output Correct
; otherwise, output Incorrect
.
inputFormat
The input is provided via standard input (stdin) and consists of four lines:
- A single integer
book_id
. - A string
title
(which may contain spaces). - An integer
subject_code
. - An integer
expected_subject_code
.
outputFormat
Output a single string to standard output (stdout): Correct
if subject_code
equals expected_subject_code
, otherwise Incorrect
.
123456
Advanced Mathematics
4
4
Correct