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

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

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

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

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

84 โจทย์
ง่าย

นับคู่ที่มีผลรวมเท่ากับค่าที่กำหนด

นับจำนวนคู่ของตำแหน่งที่ค่ารวมกันได้เท่ากับเป้าหมายที่กำหนด

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

สามเหลี่ยมตัวเลข

สร้างสามเหลี่ยมที่มีตัวเลขเพิ่มขึ้นในแต่ละแถว

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

Gradebook Top Student

Find the student with the highest average score.

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

Distance Between Points

Compute the straight-line distance between two points.

BeginnerFunctionsLearning-pathmath
ยังไม่มีวิธีแก้
ง่าย

Pyramid Rows

Draw a right-aligned pyramid of # blocks.

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

Multiplication Grid

Build a full multiplication table.

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

Hollow Square

Draw the outline of a square with * characters.

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

Celsius to Fahrenheit

Convert a temperature from Celsius to Fahrenheit.

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

หารครึ่งจนเหลือหนึ่ง

นับจำนวนครั้งที่ต้องหารครึ่งเพื่อให้ตัวเลขเหลือ 1

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

ค่าตัวเลขโรมัน

แปลงเลขโรมันเป็นตัวเลขจำนวนเต็ม

BeginnerLookup-tablesStringsStudent-beginner
ยังไม่มีวิธีแก้
ง่าย

Average of Three

Average three whole numbers.

BeginnerLearning-pathVariables
ปานกลาง

Count Islands

Count groups of connected land cells in a grid.

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

Every Other Character

Keep the characters at even positions.

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

Days in a Month

Return how many days a month has, including leap years.

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

ลบค่าซ้ำ

เก็บไว้เฉพาะค่าที่พบครั้งแรกของแต่ละค่าเท่านั้น

ArraysBeginnerSetsStudent-beginner
ยังไม่มีวิธีแก้
ง่าย

Min and Max Together

Find the smallest and largest value in one pass.

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

จัดประเภทตัวเลขตามตัวหารของมัน

จัดประเภทจำนวนเต็มบวกว่าเป็น perfect, abundant หรือ deficient

BeginnerNumber-theory
ยังไม่มีวิธีแก้
ง่าย

First Negative Index

Find where the first negative number appears.

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