Leanpub Header

Skip to main content

開始競賽程式設計吧!:精通USACO銅級競賽(繁體中文版)

想要開始競賽程式設計嗎?

厭倦了閱讀晦澀的程式碼嗎?

不知道接下來要解哪些問題來提升自己嗎?

從你解決的問題中沒有學到很多嗎?(「每個問題看起來都不一樣 :( 」)

我們來幫你解決這些困擾!

這本書是你進入競賽程式設計的快速入門指南!

This book is a translation into Chinese (Traditional) of Start Competitive Programming!: Ace the USACO Bronze Competition which was originally written in English

Minimum price

Free!

$10.00

You pay

$10.00

Authors earn

$8.00
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
About

About

About the Book

2024 更新!

好吧,你想參加競賽程式設計。

也許你聽說過競賽程式設計是準備程式設計面試的好方法。

或者它可以幫助你成為更好的程式設計師。

或者它可以幫助你學習演算法來提升你的程式碼。

或者競賽程式設計很有趣。

都沒錯!(嗯,我們希望它是有趣的 :-) )

如果你想開始競賽程式設計,這裡就是你的起點。書中你會找到:

-作者的專家建議。 Dr. Baharav(書中是 Coach B :-) )是一位競賽程式設計教練。 Dr. Zingaro 是多本暢銷競賽程式設計書籍的作者。

-在嘗試解決問題之前如何對問題進行分類的建議。為何要分類?因為這樣你就知道這是什麼類型的問題,以及應該嘗試哪些解決技巧!模型問題、搜索問題、最佳化問題、幾何問題(別逃跑...我們保證沒有證明!)、字串問題、特定問題——我們都有。

-教練和他們的團隊之間的交流。就像真正的教練會做的那樣!

-書中所有問題的 C++ 程式碼。

-精選並分類的練習問題,包括提示和完整的 C++ 程式碼。也提供 Python 程式碼!

停止花時間搞清楚接下來要學什麼,被神秘的程式碼搞糊塗,或者在不同的網站上兜圈子。我們的簡明指南向你展示如何從「從未嘗試過競賽程式設計」到「BOOM,通過銅牌!」

想參加 Advent of Code?Codeforces?Leetcode?我們專注於本書的美國計算機奧林匹克(USACO)銅牌級別,但你所學到的也適用於其他競賽程式設計環境。

This book is a translation into Chinese (Traditional) of Start Competitive Programming!: Ace the USACO Bronze Competition which was originally written in English

Author

About the Authors

Zachi Baharav

Dr. Zachi Baharav holds a Ph.D. in Electrical Engineering from the Technion, Israel Institute of Technology.

After more than 20 years in the hi-tech industry and academia, I retired to dedicate my time to the next generation. I am now coaching high school students in Math and Computer Science.

Daniel Zingaro

Dr. Daniel Zingaro is an associate teaching professor of computer science and award-winning teacher at the University of Toronto. His main area of research is computer science education, where he studies how students learn computer science material.

He may have a book obsession. He has written

Learn AI-assisted Python Programming with GitHub Copilot and ChatGPT (with Leo Porter, Manning, 2024). Learn programming in the generative AI era!

Algorithmic Thinking 2/e (No Starch Press, 2024). Learn hash tables, recursion, dynamic programming, trees, graphs, and all kinds of other awesome algorithms and data structures stuff... competitive programming examples!

Learn to Code by Solving Problems (No Starch Press, 2021). Learn programming from scratch while solving competitive programming puzzles. Class tested and refined with hundreds of real students.

TranslateAI

Leanpub now has a TranslateAI service which uses AI to translate their book from English into up to 31 languages, or from one of those 31 languages into English. We also have a GlobalAuthor bundle which uses TranslateAI to translate English-language books into either 8 or 31 languages.

Leanpub exists to serve our authors. We want to help you reach as many readers as possible, in their preferred language. So, just as Leanpub automates the process of publishing a PDF and EPUB ebook, we've now automated the process of translating those books!

Contents

Table of Contents

    • 給學生的信
    • 給家長的一封信
    • 給專業人士的信
    • 致謝
    第一部分. 準備工作
    • 第一章. USACO 銅牌級
      • 1.1. USACO 銅牌級常見問題
      • 1.2. 解決並提交一個 USACO 問題
      • 1.3. 如何使用這本書
      • 1.4. 總結
    • 第二章 解題與編碼:競賽具體細節
      • 2.1. 閱讀和分析 USACO 問題
      • 2.2. 編寫你的算法
      • 2.3. 除錯
      • 2.4. 使用解答
      • 2.5. 總結
    • 第三章 複雜度分析
      • 3.1 大O符號
      • 3.2. 時間複雜度
      • 3.3. 空間複雜度
      • 3.4. 總結
    第二部分 核心技術
    • 第四章 建模與模擬
      • 4.1. 動態過程的建模
      • 4.2. 建模靜態過程
      • 4.3. 週期性過程建模
      • 4.4. 模擬加速
      • 4.5. 總結
    • 第五章. 搜尋與優化
      • 5.1. 窮舉搜尋
      • 5.2. 搜尋領域
      • 5.3. 領域列舉
      • 5.4. 搜索加速
      • 5.5. 貪婪演算法
      • 5.6. 總結
    • 第六章. 幾何概念
      • 6.1. 一維:線
      • 6.2. 二維:矩形
      • 6.3. 超過九十度
      • 6.4. 總結
    • 第七章 字串
      • 7.1. 字串作為字符序列
      • 7.2. 作為單詞的字串
      • 7.3. 字串作為對象
      • 7.4. 總結
    • 第八章. 臨時問題與高級技術
      • 8.1. 前向後退技巧
      • 8.2. 聚焦重大事件
      • 8.3. 樹
      • 8.4. 字典和動態陣列
      • 8.5. 總結
    第三部分. 比賽日及其後
    • 第九章. 比賽日
      • 9.1. 比賽前一週
      • 9.2. 比賽
      • 9.3. 比賽後
      • 9.4. 總結
    • 第十章 超越 USACO 銅級
      • 10.1. 銀級及更高
      • 10.2. 解決你的第一個USACO銀級問題
      • 10.3. 總結
    第四部分. 附錄
    • 附錄A. 所有USACO銅牌問題列表
      • USACO問題
      • Codeforces problems
      • CSES Problems
    • 附錄 B. 超越 USACO 的練習
      • B.1. 線上指南和實時教學
      • B.2. 線上練習和競賽
      • B.3. 書籍

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub