Example Input 2 10 10 Output 40.00000000
- User
Example Input
2 10 10
Output
40.00000000
Assistant
# Read the input values a, b = map(int, input().split()) # Calculate the perimeter of the rectangle perimeter = 2 * (a + b) # Print the result with 8 decimal places print("{0:.8f}".format(perimeter))
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.