Sports Section CodeChef Solution
Table of Contents
We Are Discuss About CODECHEF SOLUTION
Sports Section CodeChef Solution
Problem
The newspaper in Chefland consists ofĀ 10Ā pages numberedĀ 1Ā toĀ 10.
The lastĀ 3Ā pages of the newspaper are always dedicated to theĀ sports section.
Given a random page numberĀ ļæ½, determine whether that page is dedicated to the sports section.
Input Format
- The first and only line of input consists of a single integerĀ ļæ½, denoting the page number.
Output Format
Output on a new line,Ā YES
, if the given page number is dedicated to the sports section, andĀ NO
Ā otherwise.
You may print each character of the string in uppercase or lowercase (for example, the stringsĀ YES
,Ā yEs
,Ā yes
, andĀ yeS
Ā will all be treated as identical).
Constraints
- 1ā¤ļæ½ā¤10
Sample 1:
3
NO
Explanation:
Page numberĀ 3Ā is not dedicated to the sports section.
Sample 2:
8
YES
Explanation:
Since page numberĀ 8Ā is one of the last three pages, it is dedicated to the sports section.
Sample 3:
10
YES
Explanation:
Since page numberĀ 10Ā is one of the last three pages, it is dedicated to the sports section.
6 digit code appear after 69 seconds.
Yhaa You have done it but next? if YOU Want to Get Others Please Visit HereĀ ScishowEngineerĀ Ā ThenĀ Follow US HEREĀ andĀ Join Telegram.
If You Want To Learn Something New Then Visit OurĀ Official Channel YOUTUBE