백준 #17356번 욱 제

jhj·2024년 2월 12일

백준 JAVA

목록 보기
249/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		double k = 1 / (1 + Math.pow(10, (b - a) / 400.0));
		
		System.out.println(String.format("%.20f", k));
		
		System.out.println();
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글