QOJ.ac

QOJ

Limite de temps : 2 s Limite de mémoire : 64 MB Points totaux : 100

#23779. 比賽

Statistiques

前幾日舉辦咗一場網上編程比賽。W 大學同 K 大學嘅電腦學會一直以嚟都係競爭對手,佢哋決定利用今次比賽嚟分出高下。

今次,呢 $2$ 間大學各自都有 $10$ 個人參加呢場比賽。經過長久討論之後,佢哋決定喺參賽嘅 $10$ 個人入面,將最高分嘅 $3$ 個人嘅分數加埋,作為嗰間大學嘅分數。

畀定 W 大學同 K 大學參賽者嘅分數資料。請編寫一個程式,計算每間大學嘅分數。

輸入格式

輸入由 $20$ 行組成。第 $1$ 行至第 $10$ 行寫住代表 W 大學各位參賽者分數嘅整數,第 $11$ 行至第 $20$ 行寫住代表 K 大學各位參賽者分數嘅整數。呢啲整數全部都係 $0$ 或以上、$100$ 或以下。

輸出格式

請按呢個順序用空格隔開輸出 W 大學嘅分數同 K 大學嘅分數。

範例

輸入格式 1

23
23
20
15
15
14
13
9
7
6
25
19
17
17
16
13
12
11
9
5

輸出格式 1

66 61

輸入格式 2

17
25
23
25
79
29
1
61
59
100
44
74
94
57
13
54
82
0
42
45

輸出格式 2

240 250

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.