QOJ.ac

QOJ

시간 제한: 2 s 메모리 제한: 64 MB 총점: 100

#23756. Poäng

통계

$2$ elever på JOI-gymnasiet, elev A och elev B, gjorde prov i $4$ ämnen: informatik, matematik, naturkunskap och engelska. Givet poängen för elev A och elev B i dessa $4$ ämnen, skriv ett program som skriver ut det största av elev A:s totalpoäng $S$ och elev B:s totalpoäng $T$. Om de har samma poäng ska programmet skriva ut $S$ ($= T$).

Indata

Indatan består av $2$ rader.

Den $1$:a raden innehåller $4$ heltal separerade med $1$ mellanslag, vilka i ordning representerar elev A:s poäng i informatik, matematik, naturkunskap och engelska.

Den $2$:a raden innehåller $4$ heltal separerade med $1$ mellanslag, vilka i ordning representerar elev B:s poäng i informatik, matematik, naturkunskap och engelska.

Maxpoängen i varje ämne är $100$ poäng, och inga negativa poäng förekommer.

Utdata

Utdatan består av $1$ enda heltal som utgör det sökta värdet.

Exempel

Indata 1

100 80 70 60
80 70 80 90

Utdata 1

320

Indata 2

100 80 70 60
80 70 60 100

Utdata 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.