PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: notsoloud
Testers: iceknight1093, satyam_343
Editorialist: iceknight1093
DIFFICULTY:
273
PREREQUISITES:
None
PROBLEM:
Chef works from X pm to Y pm. How many hours does he work?
EXPLANATION:
The number of hours between X pm and Y pm is Y - X. Thus, the answer is Y - X.
TIME COMPLEXITY:
\mathcal{O}(1) per testcase.
CODE:
Code (Python)
for _ in range(int(input())):
x, y = map(int, input().split())
print(y - x)