-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathA.java
More file actions
30 lines (27 loc) · 985 Bytes
/
Copy pathA.java
File metadata and controls
30 lines (27 loc) · 985 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
package atcoder.m_solutions;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
public final class A {
public static void main(String[] args) {
final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
final int n = Integer.parseInt(in.nextLine());
if (1800 <= n && n <= 1999) {
System.out.println(1);
} else if (1600 <= n && n <= 1799) {
System.out.println(2);
} else if (1400 <= n && n <= 1599) {
System.out.println(3);
} else if (1200 <= n && n <= 1399) {
System.out.println(4);
} else if (1000 <= n && n <= 1199) {
System.out.println(5);
} else if (800 <= n && n <= 999) {
System.out.println(6);
} else if (600 <= n && n <= 799) {
System.out.println(7);
} else if (400 <= n && n <= 599) {
System.out.println(8);
}
}
}