-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2480.java
More file actions
48 lines (46 loc) · 1 KB
/
Copy path2480.java
File metadata and controls
48 lines (46 loc) · 1 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int m = 0;
int j = 0;
if(a == b && c == b && a == c){
m =+ 10000 + (a * 1000);
System.out.println(m);
}
else if(a == b || b == c || c == a){
if(a == b){
m =+ 1000 + a * 100;
System.out.println(m);
}
else if(a == c){
m =+ 1000 + a * 100;
System.out.println(m);
}
else if(b == c){
m =+ 1000 + b * 100;
System.out.println(m);
}
}
else {
if(a < b && c < b){
int m1 = b;
int j1 = m1 * 100;
System.out.println(j1);
}
else if(b < c && a < c){
int m1 = c;
int j1 = m1 * 100;
System.out.println(j1);
}
else if(b < a && c < a){
int m1 = a;
int j1 = m1 * 100;
System.out.println(j1);
}
}
}
}