Skip to content

My solutions to the ant book (プログラミングコンテストチャレンジブック [第2版], aka 蟻本, aka 白书)

Notifications You must be signed in to change notification settings

yao-yin/CompetitiveProgramming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My solutions to the ant book (プログラミングコンテストチャレンジブック [第2版], aka 蟻本, aka 白书)

What is the ant book?

It's a popular competitive programming book in Japan and China.

Motivition

To pass the coding interviews from big tech companies like FAANGMULA, I need to practice LeetCode-like problems. But tbh, I didn't learn much from the LeetCode after a certain stage (my leetcode contest rating is 2435, which is at the top 0.33% on 2022-03-26). Out of the consideration of interests and marginal benefit, I think it's a good idea to learn and practice entry level cp problems. To have an overall impression on cp about general problems and techniques, I chose to follow the ant book.

About the problems

I use the list on vjudge to track my effort. However, there are some problems we can't find the OJ like バクテリアの増殖 from Google Code Jam Japan 2011 Final. Other problems on the list are in the scope of this repository.

About the solutions

Nearly all of the code are written by me. But some of them are from the internet, there could be 2 reasons.

  • Most of problems are from POJ (Peking University JudgeOnline). POJ is using very old compilers and machines. It doesn't support the common optimization of STL and might require a tighter constant on implementation. I don't want to waste my time to do constant optimization to please the compilers and machines, especially on C++98. Instead I just use others' solutions with the source and put my code (good enough in time complexity) under it.

  • Some problems need long implementations, I don't like that so skipped them for now. I will implement them in the future (gugugu).

MISCELLANEOUS

Why is it called 蟻本 (the ant book) in JP?

Because there are 2 ants on the cover and the first problem of the book is Ants (POJ 1852).

Why is it called 白书 (the white book, 白い本) in China?

Because the cover is in white, people that love OI/ICPC have the convention to call famous cp textbooks with the color of the cover.

Comments on the book

It's definitely a great book. Problems are great, code in the book is clear and good to learn. But there are some concerns.

Please feel free to contact me if you have any feedbacks.

Email: InYuo1997 at gmail.com

About

My solutions to the ant book (プログラミングコンテストチャレンジブック [第2版], aka 蟻本, aka 白书)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published