Circus Tent

시간 제한1초메모리 제한2048 MB

요약
밑면 지름이 d이고 양쪽으로 5미터 좌석 구역이 더해지며 높이가 h인 원기둥의 옆넓이를 구한다.
난이도

쉬움10점 중 2점

유형
수학, 기하, 구현
정답자
아직 제출이 없습니다

문제

This year, the city of Delft will host the Fiery Pyrotechnical Circus (FPC). The main feature of the FPC is an amazing fire show in a huge cylindrically shaped circus tent, which has a different size every year.

The size of the circus tent depends on how much space the performed acts will need, but there should always be a ring of five meters wide reserved for the seats of the audience around the inner ring. Of all the acts, only the maximum needed diameter of the inner ring and maximum needed height of the tent will need to be considered; all the performed acts that need less space will then also fit in the tent.

Since fire-resistant tent canvas is quite expensive, they want to order exactly enough canvas for the tent to be built. You are given the task to calculate how much tent canvas will be needed to build this year's tent for the FPC.

입력

The input consists of one line with two floating-point numbers.

The first number is the necessary diameter dd of the inner ring of the circus tent in meters (with 1≤d≤10151 \leq d \leq 10^{15}).

The second number is the necessary height hh of the circus tent in meters (with 1≤h≤10151 \leq h \leq 10^{15}).

출력

The surface area of the tent canvas in square meters. Your answer should have an absolute or relative error of at most 10−610^{-6}.

예제2

  1. 예제 1

    입력
    10 5
    
    예상 출력
    628.31853071795870
    
  2. 예제 2

    입력
    4.2 3.1415
    
    예상 출력
    298.51193482924464