Apples and Pears
Time limit1sMemory limit1024 MB
Given how many apples Axel sold and how many pears Petra sold, compare 7A with 13P and print who earned more or lika if equal.
- Level
Easy1 of 10
- Topics
- Implementation, Math, Brute force
- Solved
- No attempts yet
Problem
Axel wants to compete with Petra over who sold more apples and pears, but Petra does not think you can "compare apples and pears". They agree to compare how much money they earned instead. Write a program that prints who earned the most. Apples cost 7 kronor each and pears cost 13 kronor each.
Input
One line with two integers (): the number of apples Axel managed to sell and the number of pears Petra managed to sell.
Output
The program shall print one line with a string: the person who earned the most, "Axel" or "Petra". If they sold for the same amount, print "lika".