-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDay 27.java
More file actions
35 lines (33 loc) · 738 Bytes
/
Day 27.java
File metadata and controls
35 lines (33 loc) · 738 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
29
30
31
32
33
34
35
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int a,b,c,d,e,f;
a=sc.nextInt();
b=sc.nextInt();
c=sc.nextInt();
d=sc.nextInt();
e=sc.nextInt();
f=sc.nextInt();
if(c>f)
{
System.out.println(10000);
}
else if((b>e) && (c==f))
{
System.out.println((b-e)*500);
}
else if((a>d) && (b==e) && (c==f))
{
System.out.println((a-d)*15);
}
else
{
System.out.println(0);
}
}
}