-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path49451690.java
More file actions
27 lines (22 loc) · 821 Bytes
/
Copy path49451690.java
File metadata and controls
27 lines (22 loc) · 821 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
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
switch (s) {
case "A+": System.out.println("4.3"); break;
case "A0": System.out.println("4.0"); break;
case "A-": System.out.println("3.7"); break;
case "B+": System.out.println("3.3"); break;
case "B0": System.out.println("3.0"); break;
case "B-": System.out.println("2.7"); break;
case "C+": System.out.println("2.3"); break;
case "C0": System.out.println("2.0"); break;
case "C-": System.out.println("1.7"); break;
case "D+": System.out.println("1.3"); break;
case "D0": System.out.println("1.0"); break;
case "D-": System.out.println("0.7"); break;
case "F": System.out.println("0.0"); break;
}
}
}