Odd Even and Big
Python
Easy
2 views
Problem Description
Read an integer n, output two words. First word should be EVEN or ODD. Second word should be BIG if n is greater than 100, otherwise SMALL.
Input Format
One integer n.
Output Format
One line: parity size.
Official Solution
import sys
s=sys.stdin.read().strip()
if not s: sys.exit(0)
n=int(s)
par='EVEN' if n%2==0 else 'ODD'
size='BIG' if n>100 else 'SMALL'
sys.stdout.write(par+' '+size)
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!