PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author:
Tester: apoorv_me
Editorialist: iceknight1093
DIFFICULTY:
Cakewalk
PREREQUISITES:
None
PROBLEM:
Ved writes N lines of code. If at least half of them contain bugs, he’s a newbie; otherwise he’s a pro.
M lines of code have bugs. Is Ved a newbie or a pro?
EXPLANATION:
Ved is a newbie if M \geq \frac N 2 and a pro otherwise. This can be checked using an if
condition.
TIME COMPLEXITY:
\mathcal{O}(1) per testcase.
CODE:
Editorialist's code (PyPy3)
n, m = map(int, input().split())
print('Newbie' if m >= n/2 else 'Pro')