Skip to content

Add CONTRIBUTING.md #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Contributing

## วิธีการเพิ่มโจทย์เข้าระบบของเว็บ programming.in.th

### Steps

1. Fork repo statements
2. สร้าง branch ใหม่ตามไอดีโจทย์ (สามารถดูวิธีตั้งไอดีได้ในข้อสาม)
3. เพิ่มไฟล์ `.tex` เข้าไป โดยไอดีใช้ดังนี้ `prog_ไอดีโจทย์` เช่น โจทย์ชื่อ A^B Problem จะได้ ID ว่า `prog_a_to_the_b` (ตัวอย่างไฟล์ latex สามารถดูได้ใน repo นี้)

ตัวอย่าง
```tex
\documentclass[11pt,a4paper]{article}

\usepackage{../../templates/style}

\begin{document}

\begin{problem}{ชื่อโจทย์}{standard input}{standard output}{เวลา}{ความจำ}

คำนำโจทย์

\underline{\textbf{โจทย์}} คำอธิบายโจทย์

\InputFile

\textbf{บรรทัดแรก} ข้อมูลนำเข้าบรรทัดแรก

\textbf{บรรทัดที่สอง} ข้อมูลนำเข้าบรรทัดที่สอง

\OutputFile

ข้อมูลส่งออก

\Examples

ใส่ตัวอย่าง Input / Output

\begin{example}
\exmp{5 4
}{9
}%
\end{example}

\Source

ใส่เครดิต

\end{problem}

\end{document}
```
4. Compile latex โดยการรัน script `gen`
5. ส่งอีเมลมาที่ [email protected] โดยตั้งหัวข้อว่า Manifest & Test Cases for ชื่อโจทย์ (สามารถแนบไฟล์ได้ทาง Firefox Send หรืออื่น ๆ ใน format .zip)
6. เปิด Pull Request มาที่ repo programming-in-th/statements โดยระบุชื่อโจทย์ เช่น Add A^B Problem



สำหรับการแก้คำผิด หรือเนื้อหาของโจทย์ สามารถเปิด Pull Request มาที่ repo programming-in-th/statements ได้ทันที