[Notes] - Competitive Programming 4
Notes for Competitive Programming 4. A very good book.
Foreword
This post are some notes that I have taken from the book CP4. Do note that it is much better if you read the book by yourself and these are just study notes that I have made. I didn’t make notes for all chapters, and the arrangement of this study note might be different from the ordering of chapters in the book.
Menu
Chapter 1
1.3 Algorithm Analysis
Modern Computers can process around
problems
Familiarity with these bounds:
, . , . - 32-bit signed integers (
int) and 64-bit signed integers (long long) have upper limits ofand - If you need to store integers
, use Big Integer. - The largest input size
for typical programming contest problems must be .
Beyond that, the Input/Output (I/O) routine will be the bottleneck. - Usually,
algorithms are sufficient to solve most contest problems for a simple reason: and the theoretically better algorithms are hard to differentiate empirically
Useful Libraries
printf("%.*Lf\n", n, pi);prints n decimals of pi. e.g.n=3would print3.141
Study Plan
read 30 pages per week + 9 problems + 1 contest
Nov 2025
Week 1
1 | Before 11.3: Read uptill page 30. |