Skip to content

abfipes12/Maximum-performance-competitive-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Maximum-performance-competitive-programming

There are three categories of optimizations.

  1. I think I have the asymptotically correct solution, but something fails.

  2. I think I can get a pass with my near-correct solution.

  3. I want to flex.

This document will try to cover all these cases.


custom compiler directives

what is the int_fast32_t?

cin vs scanf

a /= 2 vs. a >>= 1

linear sorting

segmented vs. Fenwick Tree

what is the restrict keyword?

emplace_back vs. push_back

custom allocators

c++ standard


Congratulations! You wasted all your time on the first assignment.


Contributing

If you're planning on highscorring on CESE or elsewhere, consider including a comment with a link to this repo in your solution; this will help to bring people wanting to push performance ever further.


Optimized CSES solutions

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages