Python for Contests
Fast input, the right standard-library tools and the performance traps that decide whether a solution passes the time limit.
5 articles~22 min total
0/5
Input and output
Standard library toolbox
- The Standard-Library ToolboxThe built-ins and modules that replace pages of hand-written code: math, collections, itertools, functools, sorting.5 minIntermediate
- Heaps, Deques and BisectPriority queues with heapq, O(1) queues with deque, and binary search on sorted lists with bisect.5 minIntermediate