SlideShare a Scribd company logo
1 of 42
Download to read offline
แข่งเขียนโปรแกรม
แข่งอะไร ดียงไง เริ่ มยังไง
            ั
การแข่งขันเขียนโปรแกรม
การแข่งขันเขียนโปรแกรม

มีหลายการแข่งขัน และหลายรู ปแบบ
คอมพิวเตอร์โอลิมปิ ก
• ไม่เกินมัธยม
• แก้โจทย์ปัญหาทางคณิ ตศาสตร์
• เขียนภาษา C/C++/Java
• อ่าน/แก้โจทย์ ผ่าน command line
• 3 ชัวโมง 4-5 ข้อ
     ่
• ตัวอย่าง
• พาลินโดรมคือ
• ในตารางนี้ มีพาลินโดรม(ที่ยาว 2 ขึ้นไป)กี่ตว
                                             ั
• เมืองแต่ละเมืองมีถนนเชื่อมกันแบบในรู ป
• เราจะทาลายถนนได้มากที่สุดกี่เส้น
  ที่จะยังทาให้คนในแต่ละเมือง
  ยังสามารถเดินทางไปเมืองอื่นๆ ได้ทุกเมือง
• ก่อนไปแข่งระดับนานาชาติ จะผ่านค่ายอบรบหลายรอบมาก
    • สอวน. ค่าย 1, ค่าย 2, ทัวประเทศ
                             ่
    • สสวท. รอบ 50 คน, 30 คน, 15 คน, 7 คน, 4 คน
         • ค่าย สสวท. = โควต้าเข้า วิศวฯคอม (จุ ฬา เกษตร)
         • ตัวแทนประเทศ = ทุนเรียน ป.เอก ที่ตางประเทศ
                                             ่
• กลายเป็ นฟ้ าที่อยูเ่ หนื อฟ้ า หนึ่ งในใต้หล้าปฐพี…
ACM-ICPC
• ระดับมหาวิทยาลัย
• โจทย์แนวเดียวกับ IOI แต่ยากกว่า
• กลุม 3 คน แต่คอม 1 เครื่ อง
     ่
• 5 ชัวโมง 8-10 ข้อ
     ่
• แก้โจทย์เสร็จ จะมีคนถือรางวัลมาให้ …เป็ นลูกโป่ ง!?
• เริ่ มจากการแข่งระดับภาค (ได้อบรมฟรี )
• ไประดับประเทศ (ได้ไปภูเก็ต)
• ไประดับภูมิภาค (ได้ไปต่างประเทศ)
• ไป World Final (ได้แชมป์ โลก!?)
Google Code Jam
• ใครแข่งก็ได้ แข่ง Online
• จัดโดย
• 2.5 ชัวโมง 3-5 ข้อ
       ่
• ชนะได้เงิน $5,000 (160k บาท) ได้ไปแข่งที่ Google
    • อาจจะได้รับเข้าทางานกับ Google
Thailand Code Jom
• เขียนเอามันส์
• โจทย์แนว IOI แต่ง่ายกว่า
• กติกาคือ ทีมไหนเขียนช้าจะ “จมน้า”
• ทีมที่ “มีชวิตรอด” เป็ นทีมสุ ดท้าย จะเป็ นแชมป์
             ี
National Software Contest
• แตกต่างจากที่พูดมาทังหมด
                        ้
• “แข่งพัฒนาซอฟต์แวร์”
   • เกม, การเรียนรู ,้ ช่วยคนพิการ, เว็บไซต์, Mobile App
      งานพัฒนาด้านวิทยาศาสตร์และเทคโนโลยี
• มี 3 รอบ
   • ผ่านรอบคัดเลือกได้เงิน 3000 บาท
   • ผ่านรอบเสนอกรรมการ 7000 บาท
   • รอบชิง รางวัลที่ 1-3 ประมาณ 60000-20000 บาท
• การแข่งขันพัฒนาซอฟต์แวร์อ่ ืนๆ
   • เจ้าฟ้ าไอที
   •
รวมเว็บไซต์
       IOI เว็บสอวน.       www.posn.or.th
       ACM ICPC            www.acmicpc-thailand.org
•      Google Code Jam     code.google.com/codejam
       Thailand Code Jom   codejom.thailandoi.org
       NSC                 www2.nectec.or.th/nsc
•      Imagine Cup         www.imaginecup.com
       เจ้าฟ้าไอที         www.frit.or.th/princess.html
เล่า



       ประสบการณ์ท่ ได้
                    ี
แข่งพัฒนาโปรแกรม
• ตีโจทย์งาน
• ฝึกเขียนโปรแกรมใหญ่ๆ
   • การแข่งขันจะกดดันเราให้ทางานดีๆ
   • หาจากในห้องเรียนไม่ได้
• ฝึกนาเสนอ
   • และการเขียนโครงการ ทาโปสเตอร์นาเสนอ ทาแผ่นพับ ฯลฯ
เข้าค่ายติวเข้ม
• เขียนโปรแกรมคล่องขึ้นมาก
• ได้ความรู ้ เยอะมาก!
    • Number Theory, Graph Theory, Greedy Algorithm, Divide
      and Conquer Technique, Dynamic Programming, NP-
      Completeness, วิธีการพิสูจน์ทางคณิ ตศาสตร์ , เฮือกๆ…
• ได้เพื่อนกลุมใหม่
              ่
• เก่งปิ งปอง และ ได้กินขนมตลอดเวลา 
แข่งแก้โจทย์ปัญหาแนว IOI
• คุ นเคยกับการคิดแก้ปัญหาอย่างเป็ นระบบ
     ้
• มี “เครื่ องมือทางความคิด” ในการแก้ปัญหามากขึ้น
วิธีเริ่มต้น…
สอบเข้าค่าย สอวน.
                    • จาเป็ นสาหรับแข่ง IOI
                       • เป็ นพื้นฐานที่ดสาหรับแข่ง ACM ICPC,
                                         ี
                          Google Code Jam
                    • ลักษณะข้อสอบ *ยังไม่มมาตราฐานกลาง ขึ้นกับศูนย์สอบ
                                           ี

                       • เน้นโจทย์ปัญหาที่คิดด้วยเหตุผล
                       • วัดความรู คณิ ตศาสตร์พ้ ืนฐาน (เลขฐาน เซ็ต
                                    ้
                          ตรรกศาสตร์ ความสัมพันธ์ ฟังก์ชน ตรีโกณ
                                                               ั
                          เรขาคณิ ต)
                       • อาจมีให้อานโค้ดโปรแกรมสันๆ
                                      ่              ้
ตัวอย่าง ข้อสอบเข้าค่าย สอวน.
                       • มีบอล 12 ลูก
                       • ในนี้ มีลูกนึ งที่น้าหนัก “ต่าง” จากลูกอื่น
                       • ถ้าเรามีตาชัง 2 แขนตัวนึ ง
                                    ่
                       • หาจานวนครั้งที่นอยที่สุดที่ใช้ชง
                                         ้              ่ั
                       • โดยรับประกันว่าสามารถระบุ หา บอลที่
                         น้าหนักแตกต่าง ได้
ตัวอย่าง ข้อสอบเข้าค่าย สอวน.
                       • มีบอล 256 ลูก น้าหนักต่างกันทังหมด  ้
                       • จับคู บอลทุกคู ่ หาลูกที่หนัก วิธี “แพ้คดออก”
                               ่                                 ั
                          • คัดเอาลูกที่หนักที่กว่า เข้ารอบ
                          • จับคู บอลที่เข้ารอบ มาช่างด้วยกันเอง
                                    ่
                       • ต้องช่างกี่ครั้งจนกว่าจะได้ลูกที่หนักที่สุด ?
                       • หลังจากได้ลูกที่หนักที่สุดแล้ว
                          • จะหาว่าลูกไหนหนักที่ 2 ต้องช่างอีกน้อยที่สุด
                             กี่ครั้ง ?
ตัวอย่าง ข้อสอบเข้าค่าย สอวน.
                       • f(x-2) = x2 – x + 1
                         f(1) + f(2) = ?
                       • 2x2 + 2y2 + 3x - 4y = 0
                         หาพื้นที่ของวงกลมนี้
                       • 1, 1, 2, 3, 5, 8, 13, …
                         ตัวถัดไปคืออะไร
ลองทาโจทย์ออนไลน์
                    • League.thailandoi.org
                         • จัดแข่งทุ กเดือน! โดยกลุ มเด็กคอมโอและคณะ
                                                    ่
                         • แบ่ง division แบบฟุตบอล
                    • Programming.in.th
                         • ติวภาษา C เบื้องต้น
                         • รวมโจทย์จากการแข่งจริ งระดับต่างๆ
                         • มีขอสอบข้อเขียนปี เก่าๆ
                              ้
                    • เว็บต่างประเทศ ให้คนว่า “online judge” …มีเต็ม
                                         ้
http://www.flickr.com/photos/stuckincustoms/4076310756/sizes/o/in/photostream/
                                                                                 มาเขียนโปรแกรมกันเถอะ 

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

แข่งเขียนโปรแกรม