백준 #24751번 Betting

jhj·2024년 4월 28일

백준 JAVA

목록 보기
454/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 = 100 - a;
		
		System.out.println(String.format("%.10f", (100 / a)));
		System.out.println(String.format("%.10f", (100 / b)));
		
		sc.close();
	}
}
profile
개발자를 꿈꾸는

1개의 댓글

comment-user-thumbnail
2025년 8월 7일

Interesting use of percentages in this problem! If you're into real betting strategies and number crunching, gold365 also offers some neat insights—worth checking out if you're applying math beyond just code. https://gooold365.com/

답글 달기