รับตัวเลข 3 ตัว (บรรทัดละ 1) "all the same" ถ้าเหมือนกันทั้ง 3 "all different" ถ้าต่างกันหมด "neither" ถ้าเหมือนกันบางตัว
-10,000 ≤ ตัวเลข ≤ 10,000
3 3 3
all the same
1 2 3
all different
1 1 2
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 เชื่อมทุกคู่เพื่อตรวจว่าต่างกันหมด
กด Run เพื่อรันโค้ด หรือ ตรวจคำตอบ เพื่อตรวจ test cases