FPC19-018.Circus Tent
Easy · 1 s · 256 MB
- icpc
- fpc
- 2019
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.
Giriş formatı
The input consists of one line with two floating-point numbers.
The first number is the necessary diameter of the inner ring of the circus tent in meters (with ).
The second number is the necessary height of the circus tent in meters (with ).
Çıxış formatı
The surface area of the tent canvas in square meters. Your answer should have an absolute or relative error of at most .
Qeyd
Source: Freshmen Programming Contest 2019 · License: CC BY-SA 4.0 · Original: https://fpc.wisv.ch · Statement adapted for AlgoLens and shared under the same license.
Nümunələr
Giriş #1
10 5
Çıxış #1
628.31853071795870
Giriş #2
4.2 3.1415
Çıxış #2
298.51193482924464