Alex Origami Squares | 프로그래밍의 벗 PivotOJ
PivotOJ

Alex Origami Squares

시간 제한: 2000ms메모리 제한: 256MB출처: NEERC Northern Subregional 2015BOJ 11466
이 문제는 본문 이미지 일부가 표시되지 않습니다. 텍스트만으로 풀이가 어려울 수 있습니다.

문제

Alex is fond of origami — Japanese art of paper folding. Most origami designs start with a square sheet of paper. Alex is going to make a present for his mother. Present’s design requires three equal square sheets of paper, but Alex has only one rectangular sheet. He is able to cut out squares of this sheet, but their sides should be parallel to the sides of the sheet. Help Alex to determine the maximum possible size of the paper squares he is able to cut out.

입력

The single line of the input file contains two integers h and w — the height and the width of the sheet of paper (1 ≤ h, w ≤ 1000).

출력

Output a single real number — the maximum possible length of the square side. It should be possible to cut out three such squares of h × w sheet of paper, so that their sides are parallel to the sides of the sheet.

Your answer should be precise up to three digits after the decimal point.

힌트

[이미지 1]

Example 1

[이미지 2]

Example 2

예제

예제 1

입력
210 297
출력
105.0

예제 2

입력
250 100
출력
83.333333
이 문제는 채점 준비 중입니다. 테스트 데이터가 확보되면 제출이 가능합니다.