โจทย์ เขียนโปรแกรม

ฝึกทักษะการแก้ปัญหาด้วยโจทย์กลางที่รองรับ Python, C++ และ C# ทุกคำตอบจะถูกตรวจสอบอัตโนมัติและรีวิวโดย AI

  • Python · C++ · C#
  • ทดสอบอัตโนมัติ
  • รีวิวโค้ดโดย AI
  • แนวทางจากชุมชน
เส้นทางการเรียนรู้
150
โจทย์
2
วิธีแก้ที่แชร์
3
ภาษา

โจทย์ทั้งหมด

ค้นหาตามหัวข้อ ภาษา หรือระดับความยาก

150 โจทย์
ง่าย

Largest of Three

Pick the largest of three numbers without a built-in max.

BeginnerConditionsLearning-path
ยังไม่มีวิธีแก้
ง่าย

Swap First and Last

Exchange the first and last items of a list.

ArraysBeginnerLearning-path
ยังไม่มีวิธีแก้
ยาก

Strongly Connected Components

นับกลุ่มของโหนดที่ทุกโหนดสามารถเข้าถึงกันและกันได้ทั้งหมด

AdvancedCompetitive-programmingGraphs
ยังไม่มีวิธีแก้
ง่าย

Cart Total With Discount

Total a shopping cart and apply a discount above a threshold.

ArraysBeginnerFunctionsLearning-path
ยังไม่มีวิธีแก้
ง่าย

Sum of Odd Numbers

Add every odd number up to a limit.

BeginnerLearning-pathLoops
ยังไม่มีวิธีแก้
ง่าย

คะแนนตัวอักษรในคำ

บวกค่าคะแนนของแต่ละตัวอักษรในคำหนึ่งคำ

Lookup-tablesStrings
ยังไม่มีวิธีแก้
ปานกลาง

ยกกำลังแบบเวียนเกิด (Recursive Power)

คำนวณการยกกำลังด้วยวิธีเวียนเกิดโดยการหารเลขชี้กำลังครึ่งหนึ่งในแต่ละรอบ

BeginnerLearning-pathRecursion
ยังไม่มีวิธีแก้
ง่าย

Power by Repeated Multiplication

Raise a number to a power with a loop.

BeginnerLearning-pathLoops
ยังไม่มีวิธีแก้
ง่าย

Triangle Classification

Classify three side lengths as invalid, equilateral, isosceles, or scalene.

ConditionsGeometry
ยังไม่มีวิธีแก้
ง่าย

Ticket Price by Age

Choose a cinema ticket price from the visitor's age.

BeginnerConditionsLearning-path
ยังไม่มีวิธีแก้
ง่าย

Body Mass Index

Compute BMI from weight and height.

BeginnerLearning-pathVariables
ยังไม่มีวิธีแก้
ง่าย

Count Uppercase Letters

Count the capital letters in a text.

BeginnerLearning-pathStrings
ยังไม่มีวิธีแก้
ปานกลาง

Island Perimeter

Measure the coastline of land cells in a grid.

AdvancedGridsHackathon
ยังไม่มีวิธีแก้
ง่าย

Count Positive Numbers

Count the values greater than zero in a list.

ArraysBeginnerLearning-path
ยังไม่มีวิธีแก้
ปานกลาง

Robot Command Simulator

Move a robot using L (turn left 90 degrees), R (turn right 90 degrees), and A (advance one step).

SimulationState-machines
ยังไม่มีวิธีแก้
ยาก

รางวัลสูงสุดจากโปรเจกต์

เลือกโปรเจกต์ที่ไม่ทับซ้อนกันเพื่อให้ได้รางวัลรวมมากที่สุด

Dynamic-programmingScheduling
ยังไม่มีวิธีแก้
ง่าย

ลำดับคอลลาทซ์ (Collatz Sequence)

ทำตามกฎหารสองหรือคูณสามบวกหนึ่งจนกว่าจะถึง 1

NumbersSimulation
ยังไม่มีวิธีแก้
ปานกลาง

ยกเศษส่วนให้กับเลขชี้กำลังจริง

ยกเศษส่วนบวกให้กับเลขชี้กำลังที่เป็นจำนวนจริง

Fractionsmath
ยังไม่มีวิธีแก้