File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Contributing
2+
3+ ## วิธีการเพิ่มโจทย์เข้าระบบของเว็บ programming.in.th
4+
5+ ### Steps
6+
7+ 1 . Fork repo statements
8+ 2 . สร้าง branch ใหม่ตามไอดีโจทย์ (สามารถดูวิธีตั้งไอดีได้ในข้อสาม)
9+ 3 . เพิ่มไฟล์ ` .tex ` เข้าไป โดยไอดีใช้ดังนี้ ` prog_ไอดีโจทย์ ` เช่น โจทย์ชื่อ A^B Problem จะได้ ID ว่า ` prog_a_to_the_b ` (ตัวอย่างไฟล์ latex สามารถดูได้ใน repo นี้)
10+
11+ ตัวอย่าง
12+ ``` tex
13+ \documentclass[11pt,a4paper]{article}
14+
15+ \usepackage{../../templates/style}
16+
17+ \begin{document}
18+
19+ \begin{problem}{ชื่อโจทย์}{standard input}{standard output}{เวลา}{ความจำ}
20+
21+ คำนำโจทย์
22+
23+ \underline{\textbf{โจทย์}} คำอธิบายโจทย์
24+
25+ \InputFile
26+
27+ \textbf{บรรทัดแรก} ข้อมูลนำเข้าบรรทัดแรก
28+
29+ \textbf{บรรทัดที่สอง} ข้อมูลนำเข้าบรรทัดที่สอง
30+
31+ \OutputFile
32+
33+ ข้อมูลส่งออก
34+
35+ \Examples
36+
37+ ใส่ตัวอย่าง Input / Output
38+
39+ \begin{example}
40+ \exmp{5 4
41+ }{9
42+ }%
43+ \end{example}
44+
45+ \Source
46+
47+ ใส่เครดิต
48+
49+ \end{problem}
50+
51+ \end{document}
52+ ```
53+ 4 . Compile latex โดยการรัน script ` gen `
54+ 5 . ส่งอีเมลมาที่ prog.in.th@gmail.com โดยตั้งหัวข้อว่า Manifest & Test Cases for ชื่อโจทย์ (สามารถแนบไฟล์ได้ทาง Firefox Send หรืออื่น ๆ ใน format .zip)
55+ 6 . เปิด Pull Request มาที่ repo programming-in-th/statements โดยระบุชื่อโจทย์ เช่น Add A^B Problem
56+
57+
58+
59+ สำหรับการแก้คำผิด หรือเนื้อหาของโจทย์ สามารถเปิด Pull Request มาที่ repo programming-in-th/statements ได้ทันที
You can’t perform that action at this time.
0 commit comments