เหมือนกันหมดหรือไม่

📋 โจทย์

รับตัวเลข 3 ตัว (บรรทัดละ 1) "all the same" ถ้าเหมือนกันทั้ง 3 "all different" ถ้าต่างกันหมด "neither" ถ้าเหมือนกันบางตัว

⚠️ ข้อจำกัด

-10,000 ≤ ตัวเลข ≤ 10,000

📝 ตัวอย่าง

ตัวอย่างที่ 1
Input:
3
3
3
Output:
all the same
ตัวอย่างที่ 2
Input:
1
2
3
Output:
all different
ตัวอย่างที่ 3
Input:
1
1
2
Output:
neither
🔓 ดูเฉลย
a = int(input())
b = int(input())
c = int(input())
if a == b == c:
    print("all the same")
elif a != b and b != c and a != c:
    print("all different")
else:
    print("neither")

💡 ใช้ == ตรวจเท่ากัน, != ตรวจไม่เท่ากัน, and เชื่อมทุกคู่เพื่อตรวจว่าต่างกันหมด

🐍 main.py

กด Run เพื่อรันโค้ด หรือ ตรวจคำตอบ เพื่อตรวจ test cases