PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: raysh07
Tester: apoorv_me
Editorialist: iceknight1093
DIFFICULTY:
501
PREREQUISITES:
None
PROBLEM:
Given the ratings of Dominater and Everule before a contest, and their rating change after participating in it, who ends up with a higher rating?
EXPLANATION:
Dominater’s initial rating is R_1, and change is D_1. So, his final rating is R_1 + D_1.
Similarly, Everule’s final rating is R_2 + D_2.
So, the answer is Dominater
if R_1 + D_1 \gt R_2 + D_2, and Everule
otherwise.
This can be checked using a simple if
condition.
TIME COMPLEXITY
\mathcal{O}(1) per testcase.
CODE
Editorialist's code (Python)
r1, r2 = map(int, input().split())
d1, d2 = map(int, input().split())
print('Dominater' if r1+d1 > r2+d2 else 'Everule')