QOJ.ac

QOJ

حد الوقت: 2 s حد الذاكرة: 1024 MB

#23936. Dienstag

الإحصائيات

Aufgabenstellung

Eine ganze Zahl $X$ ist gegeben.

Heute ist Sonntag. Gib $1$ aus, wenn $X$ Tage nach heute ein Dienstag ist, und gib andernfalls $0$ aus.

Bedingungen

  • $1 \le X \le 100$.
  • $X$ ist eine ganze Zahl.

Eingabe

Die Eingabe erfolgt im folgenden Format:

X

Ausgabe

Gib $1$ aus, wenn $X$ Tage nach heute ein Dienstag ist, und gib andernfalls $0$ aus.

Gib nichts anderes als die Antwort aus. (Gib auch keine Sätze aus, die zur Eingabe auffordern usw.)

Für das Antwortformat kannst du dich auch an den Übungsaufgaben und ihrencab-Mustern orientieren.

Beispiel 1

Beispieleingabe 1

2

Beispielausgabe 1

1
  • $2$ Tage nach heute ist Dienstag. Daher wird $1$ ausgegeben.

Beispiel 2

Beispieleingabe 2

10

Beispielausgabe 2

0
  • $10$ Tage nach heute ist Mittwoch und nicht Dienstag. Daher wird $0$ ausgegeben.

Beispiel 3

Beispieleingabe 3

100

Beispielausgabe 3

1
  • $100$ Tage nach heute ist Dienstag. Daher wird $1$ ausgegeben.

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.