CT301

Last crates of Zephyr

EasyL1 · Pixel PusherAcceptance: 0.0%XP: 5

At the saffron fields of Marigold Row, Zephyr records each crates in a worn leather ledger. The guild wants answers, not guesses. Task: Read the width w and height h of a rectangle and print its perimeter. Input format: One line with two space-separated integers w and h. Output format: Print the perimeter 2*(w+h). Constraints: 0 <= w,h <= 1000000000.

Example 1:

Input: 414046445 539505271
Output: 1907103432

Example 2:

Input: 58267506 732567124
Output: 1581669260

Example 3:

Input: 738008307 583473414
Output: 2642963442

Constraints:

0 <= w,h <= 1000000000.

Loading...
Test Cases:No test cases
No test cases available.