백준 #30793번 gahui and sousenkyo 3

jhj·2024년 3월 1일

백준 JAVA

목록 보기
430/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		double a = sc.nextDouble();
		double b = sc.nextDouble();
		double result = a / b;
		
		if(result < 0.2) {
			System.out.println("weak");
		}else if(0.2 <= result && result < 0.4) {
			System.out.println("normal");
		}else if(0.4 <= result && result < 0.6) {
			System.out.println("strong");
		}else {
			System.out.println("very strong");
		}
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글