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

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

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

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

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

84 โจทย์
ง่าย

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

BeginnerLearning-pathVariables
ง่าย

Simple Interest

Find the total amount after simple interest.

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

ค่าที่มากกว่าค่าเฉลี่ย

เก็บเฉพาะค่าที่มากกว่าค่าเฉลี่ย

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

Power by Repeated Multiplication

Raise a number to a power with a loop.

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

Swap First and Last

Exchange the first and last items of a list.

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

Cart Total With Discount

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

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

Recursive Palindrome

Check a palindrome recursively, ignoring case and punctuation.

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

Count Positive Numbers

Count the values greater than zero in a list.

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

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

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

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

Sum of Odd Numbers

Add every odd number up to a limit.

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

Ticket Price by Age

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

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

Running Sum

Replace each value with the total so far.

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

Largest of Three

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

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

เลขฟีโบนัชชี

คืนค่าเลขฟีโบนัชชีลำดับที่ n

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

Multiplication Table Row

List the first multiples of a number.

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

Initials From a Name

Build uppercase initials from a full name.

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

Countdown to Liftoff

Count down from a number and end with Liftoff!

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

Body Mass Index

Compute BMI from weight and height.

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