This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define chief main | |
#define yeet return | |
#define sussin if | |
#define bussin for | |
#define tweakin while | |
#define vibin std | |
#define yikes endl | |
#define ongod cout | |
#define fr << | |
#define deadass >> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import math | |
def random_pick(n, m): | |
"""Pick m integers from a bag of the integers in [0, n) without replacement""" | |
d = {i : i for i in range(m)} # For now, just pick the first m integers | |
res = [] | |
for i in range(m): # Pick the i-th number | |
j = random.randrange(i, n) |