NOTECNT - Editorial

PROBLEM LINK:

Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4

Author: raysh07
Tester: iceknight1093
Editorialist: iceknight1093

DIFFICULTY:

Cakewalk

PREREQUISITES:

None

PROBLEM:

You have A notebooks, with B pages each.
You can write 50 lines on the front and 50 lines on the back of each page.
How many lines can you write in total?

EXPLANATION:

With 50 lines on the front and 50 lines on the back of each page, that’s a total of 100 lines that can be written per page.

Each notebook has B pages, so you can write 100\times B lines per notebook.

With A notebooks in total, multiply that quantity by A to obtain the final number of lines:

100\times A\times B

TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

CODE:

Editorialist's code (PyPy3)
a, b = map(int, input().split())
print(100*a*b)