Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

T21 - Editorial

$
0
0

PROBLEM LINK:

[Contest] T21

Author:Nandishwar Garg

DIFFICULTY:

SIMPLE

PREREQUISITES:

None

PROBLEM:

You are given two large numbers m and n. You have to multiply m and n then product is needed to be divided by 3. What will be the remainder after division?

EXPLANATION:

To solve the problem, just go through these 3 steps:

Step 1: The given numbers m and n are needed to be multiplied.

Step 2: The product which you get after multiplying the numbers is needed to be divided by 3.

Step 3: Print the remainder you get.

AUTHOR'S SOLUTION:

Author's solution can be found here


Viewing all articles
Browse latest Browse all 40121

Trending Articles