QOJ.ac

QOJ

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

#23756. ניקוד

통계

$2$ תלמידים בתיכון JOI, תלמיד A ותלמיד B, ניגשו לבחינות ב-$4$ מקצועות: מדעי המחשב, מתמטיקה, מדעים ואנגלית. בהינתן הציונים של תלמיד A ותלמיד B ב-$4$ המקצועות הללו, כתבו תוכנית המדפיסה את הגדול מבין הציון הכולל $S$ של תלמיד A והציון הכולל $T$ של תלמיד B. אולם, במקרה של שוויון, הדפיסו את $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.