Poisonous Oyster

ABC 393

Problem 23 of 50

Easy

What to do

Two people ate different combinations of 4 oyster types. Person 1 ate types 1 and 2. Person 2 ate types 1 and 3. Exactly one type is poisonous. Based on whether each person felt 'sick' or 'fine', determine which oyster type (1, 2, 3, or 4) is poisonous.

Key Concepts

if-statements conditional logic input and output

Examples

Input: s1 = 'sick', s2 = 'fine'

Output: 2

Input: s1 = 'fine', s2 = 'fine'

Output: 4

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...