Shape Area Total

Programming Interview Easy 8 views
Back to Questions

Problem Description

You will get q shapes. Each line: RECT w h, CIRC r, or SQR a. Print total area with 2 decimals.

Input Format

See description.

Output Format

See description.

Sample Test Case

Input:
3 RECT 3 4 CIRC 1 SQR 2
Output:
20.14

Constraints

Total operations up to 200000.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next