QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 1024 MB

#23936. יום שלישי

Statistics

תיאור הבעיה

נתון מספר שלם $X$.

היום יום ראשון. אם $X$ ימים אחרי היום יחול יום שלישי, הדפס $1$, ואחרת הדפס $0$.

מגבלות

  • $1 \le X \le 100$.
  • $X$ הוא מספר שלם.

קלט

הקלט ניתן בפורמט הבא:

X

פלט

הדפס $1$ אם $X$ ימים אחרי היום יחול יום שלישי, והדפס $0$ אחרת.

אל תדפיס דבר מלבד התשובה. (אל תדפיס משפטים המבקשים קלט וכדומה.)

לגבי פורמט התשובה, ניתן גם לעיין בבעיות התרגול ודוגמאות הפתרון שלהן.

דוגמה 1

קלט לדוגמה 1

2

פלט לדוגמה 1

1
  • $2$ ימים אחרי היום הוא יום שלישי. לכן, מדפיסים $1$.

דוגמה 2

קלט לדוגמה 2

10

פלט לדוגמה 2

0
  • $10$ ימים אחרי היום הוא יום רביעי, ולא יום שלישי. לכן, מדפיסים $0$.

דוגמה 3

קלט לדוגמה 3

100

פלט לדוגמה 3

1
  • $100$ ימים אחרי היום הוא יום שלישי. לכן, מדפיסים $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.