Are you a friends ? c++ example




Question

Given two integers. your task is to find if these integers are friends or not integers considered a friend if both are odd or both are even otherwise they are not friends.
Constraints
1 <= (a, b) <= 1000
Input Format
one line contains two integers in this format :
a b
Output Format:
print "homies" without the quotes if they are friends, otherwise print "!homies" without the quotes



Sol...




إرسال تعليق

الرجاء تحديد الوضع المضمّن لإظهار نظام التعليق.*

أحدث أقدم