CodeMentor.
Ask AIProblemsLearnC++TCSCore CSHRProgress
0Lv 1
ProblemsHackerRank Warmup

Compare the Triplets

Easy
HackerRank
2/12
EasyHackerRank Warmup

Compare the Triplets

Alice and Bob each have 3 scores. Compare index by index. Higher score gets 1 point. Ties give nobody a point.

Examples

Example 1

Input

5 6 7
3 6 10

Output

1 1
Example 2

Input

1 2 3
1 2 3

Output

0 0

Stuck? Take a nudge

C++17Autosaves