Skip to content

Instantly share code, notes, and snippets.

@recuraki
Created August 14, 2023 06:38
Show Gist options
  • Save recuraki/d06fa4a44295a217f90032670c6a1000 to your computer and use it in GitHub Desktop.
Save recuraki/d06fa4a44295a217f90032670c6a1000 to your computer and use it in GitHub Desktop.
# python3 makeCasePythonKiller.py > testcases/in/pythondictkiller.txt
n = 200000
mask = (1<<17) - 1 # 0xffff
fill = int((1<<15)*1.3+1) # 43599
arr = [mask+2]*2
x = 6 # magic number
for i in range(1,fill):
arr += [x]+[x]
x = (x * 5 + 1) & mask
arr += [1]*(n-len(arr))
# output points
print(len(arr)) # N
for i in range(len(arr)): print(arr[i], i) # x, y
# output queries
print(n)
queries = []
for _ in range(n): queries.append(1)
print(*queries)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment