เรียงลำดับ 3 ตัวเลข

📋 โจทย์

รับจำนวนเต็ม 3 ตัว (บรรทัดละ 1) แสดง "increasing" ถ้าเรียงจากน้อยไปมาก (a<b<c) "decreasing" ถ้าเรียงจากมากไปน้อย (a>b>c) "neither" กรณีอื่น

⚠️ ข้อจำกัด

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

📝 ตัวอย่าง

ตัวอย่างที่ 1
Input:
1
2
3
Output:
increasing
ตัวอย่างที่ 2
Input:
5
3
1
Output:
decreasing
ตัวอย่างที่ 3
Input:
1
3
2
Output:
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 พร้อมกัน

🐍 main.py

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