QOJ.ac

QOJ

Limite de temps : 2 s Limite de mémoire : 1024 MB

#23936. Martedì

Statistiques

Testo del problema

È dato un numero intero $X$.

Oggi è domenica. Se $X$ giorni dopo oggi è martedì, stampa $1$; altrimenti, stampa $0$.

Vincoli

  • $1 \le X \le 100$.
  • $X$ è un numero intero.

Input

L'input è fornito nel seguente formato:

X

Output

Stampa $1$ se $X$ giorni dopo oggi è martedì, e stampa $0$ altrimenti.

Non stampare nient'altro oltre alla risposta. (Non stampare frasi che richiedono l'input, ecc.)

Per il formato della risposta, puoi anche fare riferimento ai problemi di allenamento e agli esempi di soluzione.

Esempio 1

Input di esempio 1

2

Output di esempio 1

1
  • $2$ giorni dopo oggi è martedì. Pertanto, si stampa $1$.

Esempio 2

Input di esempio 2

10

Output di esempio 2

0
  • $10$ giorni dopo oggi è mercoledì, non martedì. Pertanto, si stampa $0$.

Esempio 3

Input di esempio 3

100

Output di esempio 3

1
  • $100$ giorni dopo oggi è martedì. Pertanto, si stampa $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.