QOJ.ac

QOJ

Límite de tiempo: 2 s Límite de memoria: 64 MB Puntuación total: 100

#23756. Punteggio

Estadísticas

$2$ studenti del liceo JOI, A e B, hanno sostenuto gli esami in $4$ materie: Informatica, Matematica, Scienze e Inglese. Dati i punteggi di A e B in queste $4$ materie, scrivete un programma che stampi il maggiore tra il punteggio totale $S$ di A e il punteggio totale $T$ di B. Tuttavia, in caso di parità, stampate $S$ ($= T$).

Input

L'input è composto da $2$ righe.

La riga $1$ contiene $4$ interi separati da $1$ spazio, che rappresentano nell'ordine il punteggio in Informatica, il punteggio in Matematica, il punteggio in Scienze e il punteggio in Inglese di A.

La riga $2$ contiene $4$ interi separati da $1$ spazio, che rappresentano nell'ordine il punteggio in Informatica, il punteggio in Matematica, il punteggio in Scienze e il punteggio in Inglese di B.

Il punteggio di ciascuna materia è su un massimo di $100$ punti e non vengono mai assegnati punteggi negativi.

Output

L'output è costituito da $1$ singolo intero, ovvero il valore richiesto.

Esempi

Input 1

100 80 70 60
80 70 80 90

Output 1

320

Input 2

100 80 70 60
80 70 60 100

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