รับจำนวนเต็ม 3 ตัว (บรรทัดละ 1) แสดง "increasing" ถ้าเรียงจากน้อยไปมาก (a<b<c) "decreasing" ถ้าเรียงจากมากไปน้อย (a>b>c) "neither" กรณีอื่น
-10,000 ≤ ตัวเลข ≤ 10,000
1 2 3
increasing
5 3 1
decreasing
1 3 2
neither
a = int(input())
b = int(input())
c = int(input())
if a < b < c:
print("increasing")
elif a > b > c:
print("decreasing")
else:
print("neither") 💡 Python รองรับ chained comparison: a < b < c ตรวจสอบว่า a < b และ b < c พร้อมกัน
กด Run เพื่อรันโค้ด หรือ ตรวจคำตอบ เพื่อตรวจ test cases