QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 64 MB Total points: 100

#23756. 得分

Statistics

JOI 高中的 $2$ 名学生 A 同学和 B 同学参加了信息、数学、理科、英语这 $4$ 门科目的考试。给定 A 同学和 B 同学在这 $4$ 门科目中的得分,请编写一个程序,输出 A 同学的总分 $S$ 与 B 同学的总分 $T$ 中较大的一个。但是,如果两人总分相同,则输出 $S$($= T$)。

输入格式

输入由 $2$ 行组成。

第 $1$ 行包含以 $1$ 个空格分隔的 $4$ 个整数,依次表示 A 同学的信息得分、数学得分、理科得分、英语得分。

第 $2$ 行包含以 $1$ 个空格分隔的 $4$ 个整数,依次表示 B 同学的信息得分、数学得分、理科得分、英语得分。

每门科目的满分均为 $100$ 分,且不会给出负分。

输出格式

输出仅包含所求的 $1$ 个整数。

样例

输入格式 1

100 80 70 60
80 70 80 90

输出格式 1

320

输入格式 2

100 80 70 60
80 70 60 100

输出格式 2

310

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.