URI Online Judge | 1007 Difference Solve with source code

Read four integer values named A, B, C and D. Calculate and print the difference of product A and B by the product of C and D (A * B - C * D).

Input

The input file contains 4 integer values.

Output

Print DIFERENCA (DIFFERENCE in Portuguese) with all the capital letters, according to the following example, with a blank space before and after the equal signal.


SOLVE


                                A = int(input())
                               B = int(input())
                               C = int(input())
                               D = int(input())

                               DIFERENCA = (A * B - C * D)


                               print("DIFERENCA = %i"%DIFERENCA)

Comments

Popular posts from this blog

How to solve an 8 puzzle problem using A* Algorithm in python

Timus Online Judge 1000. A+B Problem question and SOLVE with sudo code

URI Online Judge | 1013 The Greatest Solve with source code