-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjava2480.java
More file actions
43 lines (42 loc) · 1.12 KB
/
java2480.java
File metadata and controls
43 lines (42 loc) · 1.12 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
import java.util.Scanner;
public class java2480 {
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 prise = 0;
if(a==b && a==c){
prise = (a*1000)+10000;
System.out.println(prise);
}
else{
if(a==b){
prise = 1000+(a*100);
System.out.println(prise);
}
if(a==c){
prise = 1000+(a*100);
System.out.println(prise);
}
if(c==b){
prise = 1000+(c*100);
System.out.println(prise);
}
}
if (a!=b && b!=c && a!=c){
if(a>b && a>c){
prise = a*100;
System.out.println(prise);
}
else if(b>a && b>c){
prise = b*100;
System.out.println(prise);
}
else if(c>a && c>b){
prise = c*100;
System.out.println(prise);
}
}
}
}