QOJ.ac

QOJ

Límite de tiempo: 2 s Límite de memoria: 1024 MB

#23936. Thứ Ba

Estadísticas

Đề bài

Cho một số nguyên $X$.

Hôm nay là Chủ Nhật. Nếu $X$ ngày sau tính từ hôm nay là Thứ Ba thì in ra $1$, ngược lại in ra $0$.

Giới hạn

  • $1 \le X \le 100$.
  • $X$ là một số nguyên.

Dữ liệu vào

Dữ liệu vào được cho theo định dạng sau:

X

Kết quả

In ra $1$ nếu $X$ ngày sau tính từ hôm nay là Thứ Ba, và in ra $0$ trong trường hợp ngược lại.

Không in ra bất cứ thứ gì ngoài đáp án. (Không in ra các câu nhắc nhập dữ liệu, v.v.)

Về định dạng bài làm, bạn có thể tham khảo các bài tập luyện tập và lời giải mẫu.

Ví dụ 1

Ví dụ 1 - Dữ liệu vào

2

Ví dụ 1 - Kết quả

1
  • $2$ ngày sau tính từ hôm nay là Thứ Ba. Do đó, in ra $1$.

Ví dụ 2

Ví dụ 2 - Dữ liệu vào

10

Ví dụ 2 - Kết quả

0
  • $10$ ngày sau tính từ hôm nay là Thứ Tư, không phải Thứ Ba. Do đó, in ra $0$.

Ví dụ 3

Ví dụ 3 - Dữ liệu vào

100

Ví dụ 3 - Kết quả

1
  • $100$ ngày sau tính từ hôm nay là Thứ Ba. Do đó, in ra $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.