import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
int score = Integer.parseInt(str);
System.out.println((score >= 90)?"A" : (score >= 80)?"B" : (score >= 70)?"C" : (score >= 60)?"D" : "F");
}
}
'문제 풀이 > 자바' 카테고리의 다른 글
자바 문제 풀이 7 (0) | 2023.04.16 |
---|---|
자바 문제 풀이 6 (0) | 2023.04.15 |
자바 문제 풀이 4 (0) | 2023.04.11 |
자바 문제 풀이 3 (0) | 2023.04.09 |
자바 문제 풀이 2 (0) | 2023.04.08 |