QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 64 MB Total points: 100

#23779. コンテスト

Statistics
問題
2
   コンテスト

問題

先日,オンラインでのプログラミングコンテストが行われた. W大学とK大学のコンピュータクラブは以前からライバル関係にあり, このコンテストを利用して両者の優劣を決めようということになった.

今回,この2つの大学からはともに10人ずつがこのコンテストに参加した. 長い議論の末,参加した10人のうち,得点の高い方から3人の得点を合計し,大学の得点とすることにした.

W大学およびK大学の参加者の得点のデータが与えられる. このとき,おのおのの大学の得点を計算するプログラムを作成せよ.

入力

入力は20行からなる. 1行目から10行目にはW大学の各参加者の得点を表す整数が, 11行目から20行目にはK大学の各参加者の得点を表す整数が書かれている. これらの整数はどれも0以上100以下である.

出力

W大学の得点とK大学の得点を,この順に空白区切りで出力せよ.

入出力例

入力例1 入力例2
23
23
20
15
15
14
13
9
7
6
25
19
17
17
16
13
12
11
9
5
  
17
25
23
25
79
29
1
61
59
100
44
74
94
57
13
54
82
0
42
45
   
 
出力例1 出力例2
66 61
   
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.