PROBLEM LINK:
Contest - Division 3
Contest - Division 2
Contest - Division 1
DIFFICULTY:
CAKEWALK
PROBLEM:
Given two integers a and b, determine if their sum is odd or even.
EXPLANATION:
The problem is just blind implementation.
Check if a+b is odd or even (how?) and output:
-
Alice
if it is odd, and -
Bob
otherwise.
TIME COMPLEXITY:
O(1)
per test case.
SOLUTIONS:
Editorialist’s solution can be found here.
Experimental: For evaluation purposes, please rate the editorial (1 being poor and 5 excellent)
- 1
- 2
- 3
- 4
- 5
0 voters