-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBeeCrowd1042.java
More file actions
28 lines (24 loc) · 820 Bytes
/
BeeCrowd1042.java
File metadata and controls
28 lines (24 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.util.Arrays;
import java.util.Scanner;
// Problem URL: https://www.beecrowd.com.br/judge/en/problems/view/1042
// Last access 18 September 2022
// Visit my GitHub repository @ https://github.com/skan90
public class BeeCrowd1042 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int[] ascArray = new int[3];
int firstInt = input.nextInt();
int secondInt = input.nextInt();
int thirdInt = input.nextInt();
ascArray[0] = firstInt;
ascArray[1] = secondInt;
ascArray[2] = thirdInt;
Arrays.sort(ascArray);
for (int num : ascArray) {
System.out.println(num);
}
System.out.println('\n' +
Integer.toString(firstInt) + '\n' + Integer.toString(secondInt) + '\n' + Integer.toString(thirdInt));
input.close();
}
}