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
#include <iostream> | |
#include <complex> | |
#include <cmath> | |
#include <iomanip> | |
#include <vector> | |
#include <algorithm> | |
#include <map> | |
#include <tuple> | |
using namespace std; |
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
#include <iostream> | |
#include <complex> | |
#include <cmath> | |
#include <iomanip> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
typedef complex<double> xd; |
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
#include <iostream> | |
#include <complex> | |
#include <cmath> | |
#include <iomanip> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
double PI = acos(0) * 2; |
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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
typedef vector<int> ivec; | |
ivec polynomialMultiply(const ivec &a, const ivec &b) | |
{ | |
int N = 2 * a.size() - 1; |
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
:: =================== READ ME BEFORE USE!! ============================ | |
:: This build script assumes that cmake, python, TDM-GCC (with OpenMP) | |
:: is in your environment paths. | |
:: | |
:: It also uses Ninja to build Krita (it builds considerably faster!). | |
:: Make sure that ninja executable is in your PATHS also. | |
:: | |
:: Run this script in administrator mode. Make sure you have a stable | |
:: internet connection. | |
:: |
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
#!/bin/bash | |
. matrix.sh | |
. mods.sh | |
. translator.sh | |
function hill_decrypt { | |
key=${1// /} # clear spaces from key | |
if [ ${#key} -lt 4 ]; | |
then |
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
% BEGIN -- SETUP DOCUMENT (OVERLEAF) -- | |
\documentclass[a4paper,12pt]{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage[british]{babel} | |
\usepackage{csquotes} | |
\usepackage[backend=biber,style=apa]{biblatex} | |
\DeclareLanguageMapping{british}{british-apa} | |
\usepackage[pdftex]{graphicx} | |
\addbibresource{ref.bib} | |
\let\cite\parencite |
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
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
int main() | |
{ | |
vector<int> v, c; | |
int S, N; cin >> S >> N; |
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
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
vector<int> v, c; | |
int B(int i, int w) | |
{ |
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
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
vector<int> v, c; | |
vector< vector<int> > DP; | |
void pick(int i, int w) |