Introduction to
Satyajit Ghana
04 - February - 2019
COmpetitive programming
root@cynergy-ruas:~# whoami
![](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5735723/Satyajit.png)
- Competitive Programmer
- Web Developer
- I like C/C++ 😜
C (99), C++ (98, 11, 14), Java, Haskell, JavaScript, TypeScript, R, LaTeX, MATLAB, Python
BUT What is CP ?
A Sport
I mean literally
HOW IS IT DIFFERENT FROM REAL WORLD PROGRAMMING ?
IMAGINE THIS
- You are in the jungle. You have a pocket-knife. Someone asks you to kill an animal.
- Years of training has taught you well.
- You use your knife to sharpen a stick. Maybe you're from a top university, and you've learned to extract poison for your stick.
- Convinced that you have an effective and efficient way to kill the lion, you set forth to accomplish your task. Maybe your stick is too short, or your poisons don't work. It's okay - you live to refine your method and try again another day.
NOW IMAGINE THIS
- You are in the same jungle. You have the same pocket-knife.
- Except that you have to kill a lion.
- And you have only 2 minutes to do so.
Why do we even do CP ?
It make you a better programmer ! what else ?
- Time limit always makes you write time efficient solutions.
- It will prepare you for technical interviews.
- Further it makes you great at debugging code.
- It's a way to focus on your fundamentals.
- exponential gain in knowledge.
“What distinguishes mediocre programmers from great ones isn’t their ability to do the 80% that’s straightforward. It’s their ability to do the 20% that’s hard and interesting.”
![](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5731477/pasted-from-clipboard.png)
![$15000](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5731478/pasted-from-clipboard.png)
$15,000
![](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5731484/pasted-from-clipboard.png)
$10,000
![](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5731490/pasted-from-clipboard.png)
$100,000
Why do I do CP ?
Just for the sheer fun of it.
😆😝
And that feeling of getting an AC
![](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5731162/pasted-from-clipboard.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5731166/pasted-from-clipboard.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5731113/pasted-from-clipboard.png)
Where do i start ?
- CodeChef
- HackerRank
- TopCoder
- HackerEarth
- CodeForces
REGISTER AT
codechef.com
A LITTLE ABOUT ACM ICPC
Association for Computing Machinery - International Collegiate Programming Contest
basically it's the Olympics of Programming Competetitions
![](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5731383/pasted-from-clipboard.png)
ICPC - 2018 RESULTS
![](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5731221/pasted-from-clipboard.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5731226/pasted-from-clipboard.png)
Directi Go for Gold
what's 1.61803..
![](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5731221/pasted-from-clipboard.png)
CODEChef STYLE
- Long Challenge
- Cook-Off
- Lunch Time
Text
CODEChef RATINGS
![](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5731330/pasted-from-clipboard.png)
CODEChef LEADERBOARD
OF MSRUAS
![](https://s3.amazonaws.com/media-p.slid.es/uploads/996940/images/5731324/pasted-from-clipboard.png)
BUT WHich PROGRAMMING LANGUAGE ?
🤔
codechef.com
LET's START !
👻👻👻
Life, the Universe and Everything:
https://www.codechef.com/problems/TEST
ATM :
https://www.codechef.com/problems/HS08TEST
References
- https://www.codechef.com/
- https://www.hackerearth.com/getstarted-competitive-programming/
- http://geeksforgeeks.org
Introduction to CP
By Satyajit Ghana
Introduction to CP
- 54