Solution TOI_Zero
ระดับ A1 (ง่าย): การรับค่า-แสดงผล การใช้ตัวแปร และโครงสร้างควบคุมพื้นฐาน (if-else, loops)
ระดับ A2 (ปานกลาง): การจัดการข้อมูลพื้นฐาน เช่น การประมวลผลค่าที่รับเข้ามา การใช้ฟังก์ชัน และการจัดรูปแบบข้อมูล
ระดับ A3 (ยาก): การใช้เงื่อนไขซับซ้อน การวนลูปซ้อน และการคำนวณค่าตามเงื่อนไขที่ซับซ้อนขึ้น
หมายเหตุ: โจทย์ทั้งหมดอยู่ในขอบเขตของการเขียนโปรแกรมเบื้องต้น ตามเนื้อหาหลักสูตรวิทยาการคำนวณ ไม่มีเนื้อหาเกี่ยวกับ algorithm และ data structure ที่ซับซ้อน
- Python
- C/C++
#include<stdio.h> //preprocesser command
//global declaration
int main(){
//local declaration
//statement
return 0;
}#include<bits/stdc++.h> //preprocesser command
using namespace std;
//global declaration
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
//local declaration
//statement
return 0;
}$ gcc filename.c -o filename; ./filename
$ g++ -std=c++17 filename.cpp -o filename; ./filename
- ✉️ You can contact me at thitikorn.tk2550@gmail.com