QOJ.ac

QOJ

Süre Sınırı: 2 s Bellek Sınırı: 64 MB Toplam puan: 100

#23756. 得分

İstatistikler

JOI 高中嘅 $2$ 個學生 A 同學同埋 B 同學參加咗資訊、數學、理科、英文呢 $4$ 科嘅考試。畀定 A 同學同埋 B 同學喺呢 $4$ 科入面嘅得分,請寫一個程式,輸出 A 同學嘅總分 $S$ 同 B 同學嘅總分 $T$ 之中較大嗰個。不過,如果兩個人同分,就輸出 $S$($= T$)。

輸入格式

輸入有 $2$ 行。

第 $1$ 行有 $4$ 個用 $1$ 個空格隔開嘅整數,順序代表 A 同學嘅資訊得分、數學得分、理科得分、英文得分。

第 $2$ 行有 $4$ 個用 $1$ 個空格隔開嘅整數,順序代表 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.