December 23, 2018
Three largest
Threads: For an array of n integers. Finding 3 the largest number in the array.
Input: The first line is an integer n (n>=3). The second line 2 n is an integer array, of numbers separated by spaces.
Output: A line of 3 the largest number in the order of most, second, three and separated by spaces.
For example:
input: 3 4 3 2 output: 4 3 2
You are not logged in? Log in to Submit Now!
3 Comments
Add a Comment
You must be logged in to post a comment.
ở kiểm tra 3 number 0 sai nha add, kiểm tra lại giúp mình
Sai như thế nào bạn?
Sao cái test 3 nó in những 3 number 0 làm gì ad?