VIDEOWORTH - Editorial

PROBLEM LINK:

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

Tester: iceknight1093
Editorialist: iceknight1093

DIFFICULTY:

TBD

PREREQUISITES:

None

PROBLEM:

A picture is worth a thousand words.
Each frame of a video is worth 1000 words. If a video has 24 frames per second and lasts for S seconds, how many words is it worth?

EXPLANATION:

Each frame is worth 1000 words.
WIth 24 frames per second, that’s 24\times 1000 words per second.
S seconds makes that 24000\cdot S words in total, for S seconds.

So, the solution is to print 24000\cdot S.

TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

CODE:

Editorialist's code (Python)
for _ in range(int(input())):
    s = int(input())
    print(24000 * s)