QOJ.ac

QOJ

시간 제한: 1.0 s 메모리 제한: 1024 MB 총점: 100 해킹 가능 ✓

#16908. 便当盒冒险

통계

图片由 ChatGPT 4o 生成。

台湾的便当(盒饭)非常普遍,为学生和上班族提供了便利、实惠且营养均衡的选择。这些便当通常包括各种蔬菜、蛋白质和米饭,提供全面的膳食。由于当地自助餐厅提供了众多选择,它们是那些寻找快速、健康午餐的人的热门选择。

有五家台湾自助餐厅,编号为 $1$ 到 $5$。你计划从周一到周五每天光顾一家不同的餐厅来打包便当作为午餐。你已经在周一至周四每天各光顾了一家餐厅,每次去的都是不同的餐厅。现在是周五,你想光顾本周你还没去过的最后一家餐厅。

编写一个程序,输入你已经光顾过的四家餐厅(周一至周四每天一家),并输出你周五应该光顾的餐厅。

输入格式

输入仅一行,包含四个整数 $a, b, c, d$,每个数都在 $1$ 到 $5$ 之间(含边界),依次表示你从周一到周四光顾的餐厅编号。

  • $1 \le a, b, c, d \le 5$
  • 四个数字互不相同。

输出格式

输出你周五应该光顾的餐厅编号。

样例

输入样例 1

1 3 2 5

输出样例 1

4

输入样例 2

2 5 4 3

输出样例 2

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.