Back
Close

Reverse Mode - A square problem

Statement

 Goal

Reverse Mode problem.

Answer : A ^ 2 + B
Input
<reverse>
Output
<reverse>
Constraints
<reverse>
Example
Input
1
3 0
Output
9

Game modes
Reverse

Test cases
Test 1 Test
Input
1 3 0
Output
9

Validator 1 Validator
Input
1 4 0
Output
16

Test 2 Test
Input
1 3 1
Output
10

Validator 2 Validator
Input
1 3 2
Output
11

Test 3 Test
Input
3 5 0 5 2 10 4
Output
25 27 104

Validator 3 Validator
Input
3 6 11 6 1 13 3
Output
47 37 172

Test 4 Test
Input
7 48 3 9 0 30 44 40 39 17 1 0 34 6 22
Output
2307 81 944 1639 290 34 58

Validator 4 Validator
Input
6 18 4 44 34 49 14 5 44 0 38 20 0
Output
328 1970 2415 69 38 400

Solution language

Solution

Stub generator input
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants