Jiro

ABC 371

Problem 45 of 50

Easy

What to do

You have three brothers named A, B, and C. You know who is older or younger based on three symbols (< or >). Your task is to find out which brother is the second oldest.

Key Concepts

if-statements comparison operators conditional logic

Examples

Input: '< < <'

Output: B

Input: '< < >'

Output: C

Tips for Beginners

  • Focus on understanding the logic, not memorizing syntax
  • Use print statements to debug your code
  • Don't worry about input parsing - the function handles that for you
  • If stuck, try writing out your solution on paper first

Python Editor

Loading Python...