wip
Time Limit: 1 seconds
Memory Limit: 128 MB
Rating: 900
Problem StatementHiroto and his crew are space explorers, and they enjoy playing a game called Stellar Break Even The user will input $n$, the number of lines, and $m$, the lines of numbers. If the number of even numbers is higher than the number of odd numbers, output “You have broken even.” If the number of even numbers is not higher than the number of odd numbers, output "You have not broken even."
Input$n$, the number of lines $(n < 1000)$ $m$, lines of numbers If a number has multiple digits, count the last digit as odd or even.
Output"You have not broken even." or "You have broken even."
Sample CasesSample Input 0: 10 0 8 10 0 4 4 10 5 2 6 Sample Output 0: You have broken even. Sample Input 1: 6 997 434 754 493 139 367 Sample Output 1: You have not broken even.Explanation
Not available for this problem.
SourcesKL Coding Cup October 2024 > Problem 2
Submit | Back