Skip to content

Instantly share code, notes, and snippets.

@Maltysen
Maltysen / geo.cpp
Last active February 11, 2022 18:18
2D geometry template
//Geometry
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef complex<ld> pt;
@Maltysen
Maltysen / mazechecker.py
Created April 25, 2019 22:44
Maze Solution Checker
import sys, os
from subprocess import Popen, PIPE
if sys.argv[1]=="-d":
debug=True
prog=sys.argv[2]
else:
debug=False
prog=sys.argv[1]
@Maltysen
Maltysen / goodcode.cpp
Last active September 7, 2024 16:28
Good Code
//header
#pragma GCC target ("avx2")
#pragma GCC optimize ("O3")
#pragma GCC optimize ("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;