Skip to content

Commit fee3797

Browse files
committed
[Bronze V] Title: 시험 성적, Time: 216 ms, Memory: 17732 KB -BaekjoonHub
1 parent 7db15ad commit fee3797

4 files changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# [Bronze V] 시험 성적 - 9498
2+
3+
[문제 링크](https://www.acmicpc.net/problem/9498)
4+
5+
### 성능 요약
6+
7+
메모리: 17732 KB, 시간: 216 ms
8+
9+
### 분류
10+
11+
구현
12+
13+
### 제출 일자
14+
15+
2023년 2월 7일 23:48:05
16+
17+
### 문제 설명
18+
19+
<p>시험 점수를 입력받아 90 ~ 100점은 A, 80 ~ 89점은 B, 70 ~ 79점은 C, 60 ~ 69점은 D, 나머지 점수는 F를 출력하는 프로그램을 작성하시오.</p>
20+
21+
### 입력
22+
23+
<p>첫째 줄에 시험 점수가 주어진다. 시험 점수는 0보다 크거나 같고, 100보다 작거나 같은 정수이다.</p>
24+
25+
### 출력
26+
27+
<p>시험 성적을 출력한다.</p>
28+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
100
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
import java.util.Scanner;
3+
4+
public class Main {
5+
public static void main(String[] args) {
6+
7+
Scanner sc = new Scanner(System.in);
8+
int a =sc.nextInt();
9+
switch (a/10){
10+
case 10:
11+
System.out.println("A");
12+
break;
13+
case 9:
14+
System.out.println("A");break;
15+
case 8:
16+
System.out.println("B");break;
17+
case 7:
18+
System.out.println("C");break;
19+
case 6:
20+
System.out.println("D");break;
21+
default:
22+
System.out.println("F");
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)