Skip to content

Instantly share code, notes, and snippets.

@Maltysen
Maltysen / geo.cpp
Last active Apr 22, 2021
2D geometry template
View geo.cpp
//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 Apr 25, 2019
Maze Solution Checker
View mazechecker.py
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]
View goodcode.cpp
//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;