QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 1024 MB

#23936. Tuesday

Statistics

Problem Statement

An integer $X$ is given.

Today is Sunday. Print $1$ if $X$ days after today is Tuesday, and print $0$ otherwise.

Constraints

  • $1 \le X \le 100$.
  • $X$ is an integer.

Input

The input is given in the following format:

X

Output

Print $1$ if $X$ days after today is Tuesday, and print $0$ otherwise.

Do not print anything other than the answer. (Do not print sentences prompting for input, etc.)

For the answer format, you may also refer to the practice problems and their sample solutions.

Sample 1

Sample Input 1

2

Sample Output 1

1
  • $2$ days after today is Tuesday. Therefore, print $1$.

Sample 2

Sample Input 2

10

Sample Output 2

0
  • $10$ days after today is Wednesday, which is not Tuesday. Therefore, print $0$.

Sample 3

Sample Input 3

100

Sample Output 3

1
  • $100$ days after today is Tuesday. Therefore, print $1$.

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.