QOJ.ac

QOJ

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

#23779. การแข่งขัน

Statistiques

เมื่อวันก่อนมีการจัดการแข่งขันเขียนโปรแกรมออนไลน์ขึ้น ชมรมคอมพิวเตอร์ของมหาวิทยาลัย W และมหาวิทยาลัย K เป็นคู่แข่งกันมาอย่างยาวนาน และพวกเขาตัดสินใจใช้การแข่งขันนี้เพื่อตัดสินว่าใครเหนือกว่ากัน

ในครั้งนี้ ทั้ง $2$ มหาวิทยาลัยต่างก็ส่งตัวแทนเข้าร่วมการแข่งขันแห่งละ $10$ คน หลังจากการถกเถียงกันอย่างยาวนาน พวกเขาตกลงกันว่าจะนำคะแนนของผู้ที่ได้คะแนนสูงสุด $3$ อันดับแรกจากผู้เข้าร่วม $10$ คนมารวมกันเพื่อใช้เป็นคะแนนของมหาวิทยาลัย

เมื่อกำหนดข้อมูลคะแนนของผู้เข้าร่วมจากมหาวิทยาลัย 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.